I don't know this is a bug or just a limitation of hard disk -- when trying to delete a lot of files (e.g. empty trash directory when it contains lot of files), everything becomes very slow!
From what I saw, everything can be defined as operations to hard disk:
- Saving a VIM buffer to disk
- opening a web page in browser
- navigating in directories
Is there any solution for this? How can I prevent this problem?
My machine has 16 GB or RAM, and Intel Core i7 processor.
Relevant output:
$ cat /sys/block/[hs]d?/queue/scheduler
noop [deadline] cfq
noop [deadline] cfq
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 418G 147G 251G 37% /
none 4,0K 0 4,0K 0% /sys/fs/cgroup
udev 7,8G 4,0K 7,8G 1% /dev
tmpfs 1,6G 1,1M 1,6G 1% /run
none 5,0M 0 5,0M 0% /run/lock
none 7,8G 42M 7,8G 1% /run/shm
none 100M 64K 100M 1% /run/user
/dev/sda1 487M 3,4M 483M 1% /boot/efi
My hard disk has the following specs:
- Type HDD
- 750GB
- HDD Rotation speed 7200RPM
- HDD Interface SATA II
rm -rf lot-of-files
.cat /sys/block/[hs]d?/queue/scheduler
. The mount flags can be observed in the output ofmount
.