LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
defrag
#1
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
Reply
#2
Hi Alex,

What filesystem are you using? If you're not sure run GParted at menu> all> partition drives. I assume it's ext4.
[Image: q7j1yAl.png]
Reply
#3
Assuming you have an ext4 file system, one method to defrag would be to use the command
Code:
e4defrag

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
Code:
sudo e4defrag -c /

Example, defrag file system starting a root
Code:
sudo e4defrag /


The source article below will give more information and examples.
Source:
http://www.hecticgeek.com/2012/10/defrag...ag-ubuntu/

[Image: q7j1yAl.png]
Reply
#4
(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
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks Smile

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
Reply
#5
(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
Code:
e4defrag

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
Code:
sudo e4defrag -c /

Example, defrag file system starting a root
Code:
sudo e4defrag /


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
Reply
#6
(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?

[Image: image-B60B_544D8704.jpg]

Thanks
Reply
#7
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.

Reply
#8
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"

[Image: LoBQ2Fu.png?1]

Dave
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks Smile

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
Reply
#9
Thank you Wirezfree, I guess that I was a little too impatient. I got the screen belo after about 2 minutes:

[Image: image-9F1D_544DA93F.jpg]

Which seems to be pretty different to yours. Is it defragmented now or do I still have to tell it to defrag it?
Reply
#10
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?
[Image: q7j1yAl.png]
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)