From: Daniel Troeder <daniel@admin-box.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Normal disk speed?
Date: Fri, 01 Oct 2010 11:05:04 +0200 [thread overview]
Message-ID: <4CA5A440.80601@admin-box.com> (raw)
In-Reply-To: <AANLkTino4UGfa+9u_tSU3jj4Y-hpTwRRxt26NNhZvZcB@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3121 bytes --]
On 10/01/2010 03:12 AM, Adam Carter wrote:
> Your harddisk seeks, everything is slow.
>
> So does that then mean that my options are;
> 1. Defragment, so there is less seeking
> 2. Get an SSD
>
> Since 2 is too expensive for a decent size drive, is there anything i
> can do about 1 without a backup and restore operation? Or will the
> fragmentation be very small on reiser3 anyway (i mount with notail) so I
> should just accept things as they are.
You can gain a significant performance win by choosing your fs carefully
(and benchmarking).
If you've got a fs with mostly files of "middle size" or "big size" like
a root fs or media collection you can use ext4 or xfs and they will
perform as good or better than reiser3 because they fragment less. In my
experience reiser3 fragments strongly after a year or so of heavy usage.
xfs has a online-defragment tool "xfs_fsr" in sys-fs/xfsdump that works
very well and is officially supported. (No other fs has that, to my
knowledge.)
xfs is especially fast and efficient with "big" files (media files).
ext4 and xfs perform well in most use cases and are actively developed.
Read phoronix for benchmarks. :)
If you've got lots of small files (<4kb) (like in a portage tree, mail
or news server) you want to go with reiser3 or ext4. ext4 can be
formatted with "-T news" to optimize for small files. The optimization
is not in speed, but in small block size, to save disk space.
As I read about the nice performance of btrfs with compression I tried
it out two weeks ago. I'll be posting my benchmarks to this list soon.
Until now I didn't have any problems, but still would not use btrfs on
production systems.
I store all my small portage files (/usr/portage, /var/cache/edb and
/var/db/pkg - 215000 files) on a btrfs partition and have benchmarked it
against reiser3 (which I was using before).
--> double speed! (For example "emerge --metadata" and "rsync
<yesterday-portage> <today-portage>" needs *half* the time on btrfs than
reiser3!!!)
For work I use VirtualBox a lot. I store my VM disk images on a xfs-fs,
because I can defragment it, and fragmented VM disks are really slow.
If you're working on a RAID or have a 4k-disk, you'll have to align your
partitions to the stripe size. (See lots of long threads in this mailing
list.)
BTW: You wrote you mount with "notail". I hope you also use "noatime".
This is _ultra_important_ if you have lots of metadata work
(reading/modifying lots of files and/or their attributes, like in
portage-trees). You probably never need atimes, no you should always
mount all your filesystems with it.
mkfs.xfs has an option "-l lazy-count=1" that helps in metadata heavy
workloads.
My point: The speed of your file access can vary a lot depending on the
file system and its options. But the right file system to choose depends
on your use case. In the end you'll have to benchmark...
Bye,
Daniel
--
PGP key @ http://pgpkeys.pca.dfn.de/pks/lookup?search=0xBB9D4887&op=get
# gpg --recv-keys --keyserver hkp://subkeys.pgp.net 0xBB9D4887
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
next prev parent reply other threads:[~2010-10-01 9:06 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-30 10:58 [gentoo-user] Normal disk speed? Adam Carter
2010-09-30 13:10 ` Florian Philipp
2010-09-30 16:00 ` Peter Humphrey
2010-09-30 16:12 ` [gentoo-user] " Nikos Chantziaras
2010-09-30 16:50 ` [gentoo-user] " Florian Philipp
2010-09-30 21:43 ` Peter Humphrey
2010-09-30 13:26 ` [gentoo-user] " James
2010-09-30 16:53 ` [gentoo-user] " Volker Armin Hemmann
2010-10-01 1:12 ` Adam Carter
2010-10-01 4:41 ` Volker Armin Hemmann
2010-10-01 8:42 ` Florian Philipp
2010-10-01 16:23 ` Volker Armin Hemmann
2010-10-02 2:11 ` Adam Carter
2010-10-02 11:54 ` Florian Philipp
2010-10-02 12:11 ` Volker Armin Hemmann
2010-10-02 12:44 ` Florian Philipp
2010-10-02 15:06 ` Florian Philipp
2010-10-01 9:05 ` Daniel Troeder [this message]
2010-10-01 14:40 ` [gentoo-user] " James
2010-10-02 17:29 ` Daniel Troeder
2010-10-03 0:13 ` James
2010-10-06 8:04 ` Adam Carter
2010-10-06 18:52 ` Daniel Troeder
2010-10-06 22:59 ` Adam Carter
2010-10-07 9:33 ` Daniel Troeder
2010-10-18 10:03 ` Adam Carter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CA5A440.80601@admin-box.com \
--to=daniel@admin-box.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox