You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



defrag

Author (Read 9383 times)

0 Members and 1 Guest are viewing this topic.

Re: defrag
« Reply #12 on: October 27, 2014, 03:35:45 AM »
 

Alex

  • Forum Regular
  • ***
  • 143
    Posts
  • Reputation: 9
  • Linux Lite Member
    • View Profile
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?

Yes thanks, it does make sense.

:)
 

Re: defrag
« Reply #11 on: October 27, 2014, 01:25:03 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8778
    Posts
  • Reputation: 802
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
http://en.wikipedia.org/wiki/Ext3#Disadvantages Ext3+ file systems do not require defragging, in fact there is a warning in that article about using e2defrag.
 

Re: defrag
« Reply #10 on: October 26, 2014, 11:21:16 PM »
 

Scott

  • Global Moderator
  • Gold Level Poster
  • *****
  • 857
    Posts
  • Reputation: 186
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Intel Core i3 M 330

  • MEMORY: 6Gb

  • VIDEO CARD: Intel Integrated Graphics
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?
 

Re: defrag
« Reply #9 on: October 26, 2014, 10:10:48 PM »
 

Alex

  • Forum Regular
  • ***
  • 143
    Posts
  • Reputation: 9
  • Linux Lite Member
    • View Profile
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?
 

Re: defrag
« Reply #8 on: October 26, 2014, 08:50:52 PM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1484
    Posts
  • Reputation: 405
  • Linux Lite "Advocate"
    • View Profile

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
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: [Select]
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
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 :)

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)
 

Re: defrag
« Reply #7 on: October 26, 2014, 07:50:54 PM »
 

Alex

  • Forum Regular
  • ***
  • 143
    Posts
  • Reputation: 9
  • Linux Lite Member
    • View Profile
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.

 

Re: defrag
« Reply #6 on: October 26, 2014, 07:43:51 PM »
 

Alex

  • Forum Regular
  • ***
  • 143
    Posts
  • Reputation: 9
  • Linux Lite Member
    • View Profile
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

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
 

Re: defrag
« Reply #5 on: October 26, 2014, 07:36:31 PM »
 

Alex

  • Forum Regular
  • ***
  • 143
    Posts
  • Reputation: 9
  • Linux Lite Member
    • View Profile
Assuming you have an ext4 file system, one method to defrag would be to use the command
Code: [Select]
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: [Select]
sudo e4defrag -c /
Example, defrag file system starting a root
Code: [Select]
sudo e4defrag /

The source article below will give more information and examples.
Source:
http://www.hecticgeek.com/2012/10/defragment-ext4-file-systems-using-e4defrag-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
 

Re: defrag
« Reply #4 on: October 26, 2014, 06:23:02 PM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1484
    Posts
  • Reputation: 405
  • Linux Lite "Advocate"
    • View Profile

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
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 :)

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)
 

Re: defrag
« Reply #3 on: October 26, 2014, 04:59:51 PM »
 

Scott

  • Global Moderator
  • Gold Level Poster
  • *****
  • 857
    Posts
  • Reputation: 186
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Intel Core i3 M 330

  • MEMORY: 6Gb

  • VIDEO CARD: Intel Integrated Graphics
Assuming you have an ext4 file system, one method to defrag would be to use the command
Code: [Select]
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: [Select]
sudo e4defrag -c /
Example, defrag file system starting a root
Code: [Select]
sudo e4defrag /

The source article below will give more information and examples.
Source:
http://www.hecticgeek.com/2012/10/defragment-ext4-file-systems-using-e4defrag-ubuntu/

 

Re: defrag
« Reply #2 on: October 26, 2014, 04:38:06 PM »
 

Scott

  • Global Moderator
  • Gold Level Poster
  • *****
  • 857
    Posts
  • Reputation: 186
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Intel Core i3 M 330

  • MEMORY: 6Gb

  • VIDEO CARD: Intel Integrated Graphics
Hi Alex,

What filesystem are you using? If you're not sure run GParted at menu> all> partition drives. I assume it's ext4.
 

defrag
« Reply #1 on: October 26, 2014, 03:13:45 PM »
 

Alex

  • Forum Regular
  • ***
  • 143
    Posts
  • Reputation: 9
  • Linux Lite Member
    • View Profile
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
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section