LinHES Forums
http://forums.linhes.org/

XFS Speed Hints-Measure % frag and defrag your XFS partition
http://forums.linhes.org/viewtopic.php?f=3&t=18595
Page 3 of 3

Author:  graysky [ Sat Dec 20, 2008 8:08 am ]
Post subject: 

Nice little update... after adding the allocsize=512m to my /etc/fstab as described in the first post of this thread, check out my current frag level on my XFS /myth partition:

Code:
$ ./check_frag
actual 3198, ideal 3146, fragmentation factor 1.63%


It' been about six mo. since I defraged it, and the box has regular capture duties. Pretty nice :)

Author:  Martian [ Tue Apr 07, 2009 10:04 am ]
Post subject: 

I recently started having frequent lock-ups of my Myth box (usually while recording or watching programs). Naturally I turned to the KnoppMyth forums!

I first checkout out the SQA tables per the Wiki page here:
http://www.knoppmythwiki.org/index.php? ... hConvergDB
which showed no problems.

Since I am using XFS for my /myth partition I decided to check fragmentation which showed greater than 99% fragmentation. I can't say that I was all that surprised, this install is getting fairly old and has seen very heavy usage.

I went ahead and let the defrag run for about 7 hours (overnight). Fragmentation when I checked the next morning was at <1% and I've not had a lock-up since (knock-on wood, cross fingers, rub lucky rabbits foot, etc...)

I'm not going to even try to speculate on how defragmenting my /myth partition could have possible cured my lock-ups but I've gone from 2+ lock-ups a day to five days lock-up free.

I guess the take home here is that if you're using XFS on your /myth partition and having issues go ahead and try a defrag and see what happens!

Thanks for taking the time to research this and write it up Graysky.

Martian

Author:  graysky [ Tue Apr 07, 2009 1:54 pm ]
Post subject: 

Martian wrote:
Since I am using XFS for my /myth partition I decided to check fragmentation which showed greater than 99% fragmentation. I can't say that I was all that surprised, this install is getting fairly old and has seen very heavy usage.

Thanks for taking the time to research this and write it up Graysky.


Glad folks are getting some mileage out of this thread and equally glad your system is stable again. Just out of curiosity, what does your /etc/fstab's entry for your /myth look like? Are you using the allocsize=512 switch? It has done wonders for my system (see my post just above your post).

Author:  Martian [ Tue Apr 07, 2009 2:05 pm ]
Post subject: 

Yes I did use the allocsize=512 switch. It's only been about 5 days but I'll keep an eye on the fragmentation level and see how quickly (or not) it grows.

Author:  graysky [ Tue Apr 07, 2009 2:29 pm ]
Post subject: 

Martian wrote:
Yes I did use the allocsize=512 switch. It's only been about 5 days but I'll keep an eye on the fragmentation level and see how quickly (or not) it grows.


I think you'll be very pleased with results. The cool thing is that when R6 goes final, we can all just use ext4 which is rumored to rock with large and small files so no need for XFS :) I like it, but I don't like that fsck can't check/repair it. It's a small pain to manually run it. That said, it is an order of magnitude faster than ext3 when dealing w/ large files :)

Author:  infinitenothing [ Mon Jul 20, 2009 11:18 pm ]
Post subject: 

telinit 1 doesn't seem to work in R6. I get this error:
Quote:
telinit: /dev/initctl: No such file or directory

How does one get to single user mode?

Author:  Girkers [ Sun Jul 26, 2009 7:08 am ]
Post subject: 

infinitenothing wrote:
telinit 1 doesn't seem to work in R6. I get this error:
Quote:
telinit: /dev/initctl: No such file or directory

How does one get to single user mode?


I need to know this as well, as I have also tried editting the boot paramters through the grub bootloader and adding Single to the command line, but alas it does not work.

Author:  Girkers [ Sun Jul 26, 2009 7:14 am ]
Post subject: 

I was able to get in by editting the LinHES init boot line in grub and added S to the end of the line.

Author:  techman83 [ Sun Jul 26, 2009 11:33 pm ]
Post subject: 

graysky wrote:
I think you'll be very pleased with results. The cool thing is that when R6 goes final, we can all just use ext4 which is rumored to rock with large and small files so no need for XFS :) I like it, but I don't like that fsck can't check/repair it. It's a small pain to manually run it. That said, it is an order of magnitude faster than ext3 when dealing w/ large files :)


Benchmarks I've seen suggest that XFS is faster for large files still. But I am using it as the primary FS on my notebook and blimey it is fast. Boot in under 30 seconds on a 2.5 year old mid range T60.

Author:  nmcaullay [ Sat Nov 28, 2009 10:13 pm ]
Post subject: 

could anyone please itemise how to get into single user mode in R6? I've done the bootloader thing, but am unsure if i did it properly... thanks

Author:  graysky [ Sun Nov 29, 2009 4:38 am ]
Post subject: 

You can omit that step really. I dunno how to do it in R6 btw.

Page 3 of 3 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/