When XP used to slow down significantly, defragging the HD helped a lot. My computer is significantly slower now, I am wondering if I should be doing something similar to defragging?
If not, any ideas why it has slowed down?
Thanks
Alex
Hi Alex,
What filesystem are you using? If you're not sure run GParted at menu> all> partition drives. I assume it's ext4.
Assuming you have an ext4 file system, one method to defrag would be to use the command
The -c option will generate a fragmentation score and let you know if defragging is necessary.
Example, get a fragmentation score for the root file system
Example, defrag file system starting a root
The source article below will give more information and examples.
Source:
http://www.hecticgeek.com/2012/10/defrag...ag-ubuntu/
(10-26-2014, 07:13 PM)Alex link Wrote: [ -> ]My computer is significantly slower now,
Thanks
Alex
Hi Alex,
Without more details on your H/W it's a bit difficult.?
It could be your H/W is now limiting you, or maybe something's causing it to appear slow.?
Restart you computer and click
Menu >
System >
Resource Usage
Look at CPU usage and Memory Usage
Straight after a re-boot they should be relatively low depending on your system.
After a boot my Memory usage is @ 350-370MB and CPU wobbles around 2~4%
See if anything is consuming memory or cpu.
Fragmentation is a hotly debated topic on Linux, Yes it can fragment,
but it take a significant amount to cause performance issues in the same way as FAT/NTFS on Windows.
Normally it's an issue on systems with very high transactions like seen on databases/web-servers etc...
Scott's info is good for ext4
Dave
(10-26-2014, 08:59 PM)Scott(0) link Wrote: [ -> ]Assuming you have an ext4 file system, one method to defrag would be to use the command
The -c option will generate a fragmentation score and let you know if defragging is necessary.
Example, get a fragmentation score for the root file system
Example, defrag file system starting a root
The source article below will give more information and examples.
Source:
http://www.hecticgeek.com/2012/10/defrag...ag-ubuntu/
Yes I did have the ext4 file system, but when I entered the "sudo e4defrag -c /" command it asked for my password and then it did nothing at all - looked like it was waiting for more from me.
Thanks
(10-26-2014, 10:23 PM)Wirezfree link Wrote: [ -> ][quote author=Alex link=topic=1086.msg6463#msg6463 date=1414350825]
My computer is significantly slower now,
Thanks
Alex
Hi Alex,
Without more details on your H/W it's a bit difficult.?
It could be your H/W is now limiting you, or maybe something's causing it to appear slow.?
Restart you computer and click
Menu >
System >
Resource Usage
Look at CPU usage and Memory Usage
Straight after a re-boot they should be relatively low depending on your system.
After a boot my Memory usage is @ 350-370MB and CPU wobbles around 2~4%
See if anything is consuming memory or cpu.
Fragmentation is a hotly debated topic on Linux, Yes it can fragment,
but it take a significant amount to cause performance issues in the same way as FAT/NTFS on Windows.
Normally it's an issue on systems with very high transactions like seen on databases/web-servers etc...
Scott's info is good for ext4
Dave
[/quote]
I don't have a Resource Usage application under System (or anywhere else) but I do have a System Monitor, is that the same thing?
Thanks
One thing of interest if I click on the "Processes" button - I assume that these are all the programs loaded on boot up or soon after - there are a lot of them. All show 0 activity except for the gnome monitor (which I assume that it is referring to the System Monitor) all have a priority 'Normal' except for "Pulse Audio" which has a 'very high' priority, not sure why.
Hi Alex,
The e4defrag can take a few secs to run after entering your password, especially if never run
Just run it now, @ 3 secs, but I ran it after a fresh install a couple of days ago.
Code:
dave@asus-mini-1:~$ sudo e4defrag -c /
<Fragmented files> now/best size/ext
1. /var/cache/apt/pkgcache.bin 6/1 6770 KB
2. /opt/google/chrome/resources.pak 1/1 13928 KB
3. /opt/google/chrome/chrome-sandbox 1/1 20 KB
4. /opt/google/chrome/default_apps/youtube.crx 1/1 24 KB
5. /opt/google/chrome/default_apps/drive.crx 1/1 28 KB
Total/best extents 95624/95618
Average size per extent 41 KB
Fragmentation score 0
[0-30 no problem: 31-55 a little bit fragmented: 56- needs defrag]
This directory (/) does not need defragmentation.
Done.
dave@asus-mini-1:~$
Looked like this
I have System Monitor also. I don't think I installed "
Resource Usage"..??,
Click "Menu" and type "
htop" in the menu search box
If it's not there, it's in Synaptic, click Menu > System "Install/Remove Software"
Search for "
hto" = "Resource Usage"
Dave
Thank you Wirezfree, I guess that I was a little too impatient. I got the screen belo after about 2 minutes:
Which seems to be pretty different to yours. Is it defragmented now or do I still have to tell it to defrag it?
Quote:Is it defragmented now or do I still have to tell it to defrag it?
No, you haven't defragmented the drive and no, it doesn't need to be defragmented.
In reply #8 look in the picture about 3/4 of the way down. See the item:
Fragmentation score 1
00-30 no problem
31-55 a little bit fragmented
56- needs defrag
Your fragmentation score is 1 which means the drive is not fragmented.
Does that make sense?