V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  cattyhouse  ›  全部回复第 27 页 / 共 64 页
回复总数  1265
1 ... 23  24  25  26  27  28  29  30  31  32 ... 64  
Do ext4 filesystems need to be defragmented?

Yes (but very rarely).

If so, how do I defragment them?

Copy all the files off the partition, erase the files from the partition, then copy the files back onto the partition. The file system will intelligently allocate the files as you copy them back onto the disk.

If not, could you post a simple explanation of why they do not need to be defragmented?

ext4 acts in a more intelligent way than merely adding new files into the next available space. Instead of placing multiple files near each other on the hard disk, Linux file systems scatter different files all over the disk, leaving a large amount of free space between them. When a file is edited and needs to grow, there’s usually plenty of free space for the file to grow into. If fragmentation does occur, the file system will attempt to move the files around to reduce fragmentation in normal use, without the need for a defragmentation utility.
@zjuster 我也打算这么做。
@goodbest 你搞反了吧,左Chrome,右Safari,你再确认下。
2015-04-17 12:07:18 +08:00
回复了 ivito 创建的主题 Linux Firewalled 不放行端口
接上 iptables是c语言写的。
2015-04-17 12:02:19 +08:00
回复了 ivito 创建的主题 Linux Firewalled 不放行端口
firewalld是python写的,iptables是语言写的,性能差距可见一斑。
楼主居然把英文输入法删除了,真尼玛人才。
2015-04-17 11:16:40 +08:00
回复了 domino 创建的主题 macOS Mac OS 10.10.3 该升级吗
10.10.3 基本上没有bug了,很不错的版本。
很可能是Cookies被清除了,
1, 检查一下你是不是在清除iPhone的历史纪录的时候把Cookies清除了?
2,如果你开启了safari 的iCloud 同步,那么你在Mac上做了清除Cookies的动作,iPhone上的Cookies也会被清除。
2015-04-16 16:51:58 +08:00
回复了 cattyhouse 创建的主题 iPhone iOS 8 IKEv2 Ondemand 的蛋疼问题,目前无解
@fuck010bj 非常赞!感谢。
Dropbox 最好用的备份工具,没有之一。
2015-04-16 16:15:44 +08:00
回复了 cattyhouse 创建的主题 iPhone iOS 8 IKEv2 Ondemand 的蛋疼问题,目前无解
@fuck010bj 试试这个步骤: 连上WIFI - 拨VPN - 在不断开VPN的情况下,关闭WIFI。 然后看VPN可否自动拨上?
2015-04-16 15:24:27 +08:00
回复了 cattyhouse 创建的主题 iPhone iOS 8 IKEv2 Ondemand 的蛋疼问题,目前无解
@fuck010bj 修复了?真的假的?看来我的那个bug report有效了?
2015-04-15 13:27:46 +08:00
回复了 pengjiayou 创建的主题 Ubuntu SSD 装 Linux 选 Ext4 还是 Btrfs 好呢?
ext4比较快。
2015-04-13 11:09:41 +08:00
回复了 cattyhouse 创建的主题 Linux CentOS 7.1 Minimal 装完之后内存占用巨大, 跟 Archlinux 没法比
CentOS上吃内存最多的居然是 firewalld,tuned,dhcpclient,polkitd,目测前面两个程序是靠Python运行的。。。

难怪。。。
2015-04-13 11:06:04 +08:00
回复了 cattyhouse 创建的主题 Linux CentOS 7.1 Minimal 装完之后内存占用巨大, 跟 Archlinux 没法比
echo "*** Top 10 memory eating process ***"; ps auxf | sort -nr -k 4 | head -10
*** Top 10 memory eating process ***
root 819 0.0 1.2 329612 23164 ? Ssl 10:43 0:00 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
root 824 0.0 0.8 550156 16108 ? Ssl 10:43 0:00 /usr/bin/python -Es /usr/sbin/tuned -l -P
root 1494 0.0 0.8 103736 15652 ? S 10:43 0:00 \_ /sbin/dhclient -d -q -sf /usr/libexec/nm-dhcp-helper -pf /var/run/dhclient-eno16777736.pid -lf /var/lib/NetworkManager/dhclient-de5f7ca9-54a9-4038-a85c-b898fa20f210-eno16777736.lease -cf /var/lib/NetworkManager/dhclient-eno16777736.conf eno16777736
polkitd 986 0.0 0.6 514364 11260 ? Ssl 10:43 0:00 /usr/lib/polkit-1/polkitd --no-debug
root 933 0.0 0.4 433464 7704 ? Ssl 10:43 0:00 /usr/sbin/NetworkManager --no-daemon
root 1 0.1 0.3 57548 7400 ? Ss 10:43 0:02 /usr/lib/systemd/systemd --switched-root --system --deserialize 24
root 826 0.1 0.2 268816 4260 ? Ssl 10:43 0:01 /usr/bin/vmtoolsd
root 1530 0.0 0.2 145576 4540 pts/0 Ss 10:43 0:00 \_ -zsh
root 1526 0.0 0.2 135196 4952 ? Ss 10:43 0:00 \_ sshd: root@pts/0
postfix 1492 0.0 0.2 91236 3892 ? S 10:43 0:00 \_ qmgr -l -t unix -u
2015-04-13 08:37:30 +08:00
回复了 viator42 创建的主题 Linux 把一块硬盘上的 Linux 系统整个复制到新硬盘上的方法.
楼上的你们都把引导文件给无视了?直接复制过去是没有grub的,根本启动不了。

官方有wiki,善用搜索。

http://www.gentoo-wiki.info/HOWTO_Move_Gentoo_Installation_to_new_hard_disk
2015-04-12 17:58:30 +08:00
回复了 tanteng 创建的主题 macOS 如何在 Mac 下快速的执行某个路径下的文件
话说难道你就不能这样吗?

python ~/Documents/goagent/local/proxy.py

给这个创建一个alias就行啊
1 ... 23  24  25  26  27  28  29  30  31  32 ... 64  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2331 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 41ms · UTC 02:26 · PVG 10:26 · LAX 19:26 · JFK 22:26
Developed with CodeLauncher
♥ Do have faith in what you're doing.