file system for solid state disks
Quoted 6 lines · Jan Engelhardt
Quoted 2 lines · Richard Ballantyne
What file system that is already in the linux kernel do people recommend I use for my laptop that now contains a solid state disk?
If I had to choose, the list of options seems to be:
Quoted 8 lines
- logfs
[unmerged]- UBI layer with any fs you like
[just a guess]- UDF in Spared Flavor (mkudffs --media-type=cdrw --utf8) [does not support ACLs/quotas]
Isn't it that with modern rotational wear-levelling, re-writing hot blocks many times is not an issue, as they are internally moved around anyway? So, using a journalled filesystem such as ext3 is still good (robustness and maturity in mind). Due to lack of write buffering, perhaps a wandering log (journal) filesystem would be more suitable though? I use ext3 on my >35MB/s compact flash filesystem.
I can see there being advantage in selecting a filesystem which is lower complexity due to no additional spatial optimisation complexity, but those advantages do buy other efficiency (eg the Orlov allocator reducing fragmentation, thus less overhead), right?
Also, it would be natural to employ 'elevator=none', but perhaps there is a small advantage in holding a group of flash blocks 'ready' (like SDRAM pages being selected on-chip for lower bus access latency) - however this no longer holds when logical->physical remapping is performed, so perhaps it's better without an elevator.
Clearly, benchmarks speak...but perhaps it would make sense to have libata disable the elevator for the (compact) flash block device?
Daniel
Signature · 1 line
Daniel J Blueman
Quoted 37 lines · Daniel J Blueman
Quoted 7 lines · Jan Engelhardt
Quoted 3 lines · Richard Ballantyne
What file system that is already in the linux kernel do people recommend I use for my laptop that now contains a solid state disk?
If I had to choose, the list of options seems to be:
Quoted 9 lines
- logfs
[unmerged]- UBI layer with any fs you like
[just a guess]- UDF in Spared Flavor (mkudffs --media-type=cdrw --utf8) [does not support ACLs/quotas]
Isn't it that with modern rotational wear-levelling, re-writing hot blocks many times is not an issue, as they are internally moved around anyway? So, using a journalled filesystem such as ext3 is still good (robustness and maturity in mind). Due to lack of write buffering, perhaps a wandering log (journal) filesystem would be more suitable though? I use ext3 on my >35MB/s compact flash filesystem.
I can see there being advantage in selecting a filesystem which is lower complexity due to no additional spatial optimisation complexity, but those advantages do buy other efficiency (eg the Orlov allocator reducing fragmentation, thus less overhead), right?
Also, it would be natural to employ 'elevator=none', but perhaps there is a small advantage in holding a group of flash blocks 'ready' (like SDRAM pages being selected on-chip for lower bus access latency) - however this no longer holds when
logical->physicalremapping is performed, so perhaps it's better without an elevator.
Quoted 5 lines
Clearly, benchmarks speak...but perhaps it would make sense to have libata disable the elevator for the (compact) flash block device?
Daniel
Also, sector read ahead will actually have a performance impact on Flash, instead of speed things up with a spinning disc. For example, a request might read 128 sectors instead of the one requested at little or no extra performance impact for a spinning disc. For flash, reading 128 sectors instead of the one requested will have a noticeable performance impact.
Spinning discs have high seek latency, low serial sector read latency and equal latency for read/write
Flash has low seek latency, high serial sector read latency and longer write than read times.
James
Hi Fengguang,
Quoted 41 lines · James Courtier-Dutton
Quoted 35 lines · Daniel J Blueman
Quoted 7 lines · Jan Engelhardt
Quoted 3 lines · Richard Ballantyne
What file system that is already in the linux kernel do people recommend I use for my laptop that now contains a solid state disk?
If I had to choose, the list of options seems to be:
Quoted 8 lines
- logfs
[unmerged]- UBI layer with any fs you like
[just a guess]- UDF in Spared Flavor (mkudffs --media-type=cdrw --utf8) [does not support ACLs/quotas]
Isn't it that with modern rotational wear-levelling, re-writing hot blocks many times is not an issue, as they are internally moved around anyway? So, using a journalled filesystem such as ext3 is still good (robustness and maturity in mind). Due to lack of write buffering, perhaps a wandering log (journal) filesystem would be more suitable though? I use ext3 on my >35MB/s compact flash filesystem.
I can see there being advantage in selecting a filesystem which is lower complexity due to no additional spatial optimisation complexity, but those advantages do buy other efficiency (eg the Orlov allocator reducing fragmentation, thus less overhead), right?
Also, it would be natural to employ 'elevator=none', but perhaps there is a small advantage in holding a group of flash blocks 'ready' (like SDRAM pages being selected on-chip for lower bus access latency) - however this no longer holds when
logical->physicalremapping is performed, so perhaps it's better without an elevator.Quoted 4 lines
Clearly, benchmarks speak...but perhaps it would make sense to have libata disable the elevator for the (compact) flash block device?
Daniel
Quoted 10 lines
Also, sector read ahead will actually have a performance impact on Flash, instead of speed things up with a spinning disc.
For example, a request might read 128 sectors instead of the one requested at little or no extra performance impact for a spinning disc. For flash, reading 128 sectors instead of the one requested will have a noticeable performance impact.
Spinning discs have high seek latency, low serial sector read latency and equal latency for read/write
Flash has low seek latency, high serial sector read latency and longer write than read times.
I was having problem invoking the readahead logic on my compact flash rootfs (ext3) with tweaking the RA with 'hdparm -a' from 8 to 1024 blocks and some benchmarks (I forget which).
Fengguang, what is your favourite benchmark for finding differences in readahead values (running on eg ext3 on a flashdisk), with the current RA semantics in mainline kernels (eg 2.6.23-rc3)?
Thanks,
Daniel
Signature · 1 line
Daniel J Blueman
Quoted 54 lines · Daniel J Blueman
Hi Fengguang,
Quoted 51 lines · James Courtier-Dutton
Quoted 35 lines · Daniel J Blueman
Quoted 7 lines · Jan Engelhardt
Quoted 3 lines · Richard Ballantyne
What file system that is already in the linux kernel do people recommend I use for my laptop that now contains a solid state disk?
If I had to choose, the list of options seems to be:
Quoted 8 lines
- logfs
[unmerged]- UBI layer with any fs you like
[just a guess]- UDF in Spared Flavor (mkudffs --media-type=cdrw --utf8) [does not support ACLs/quotas]
Isn't it that with modern rotational wear-levelling, re-writing hot blocks many times is not an issue, as they are internally moved around anyway? So, using a journalled filesystem such as ext3 is still good (robustness and maturity in mind). Due to lack of write buffering, perhaps a wandering log (journal) filesystem would be more suitable though? I use ext3 on my >35MB/s compact flash filesystem.
I can see there being advantage in selecting a filesystem which is lower complexity due to no additional spatial optimisation complexity, but those advantages do buy other efficiency (eg the Orlov allocator reducing fragmentation, thus less overhead), right?
Also, it would be natural to employ 'elevator=none', but perhaps there is a small advantage in holding a group of flash blocks 'ready' (like SDRAM pages being selected on-chip for lower bus access latency) - however this no longer holds when
logical->physicalremapping is performed, so perhaps it's better without an elevator.Quoted 4 lines
Clearly, benchmarks speak...but perhaps it would make sense to have libata disable the elevator for the (compact) flash block device?
Daniel
Also, sector read ahead will actually have a performance impact on Flash, instead of speed things up with a spinning disc.
For example, a request might read 128 sectors instead of the one requested at little or no extra performance impact for a spinning disc. For flash, reading 128 sectors instead of the one requested will have a noticeable performance impact.
Spinning discs have high seek latency, low serial sector read latency and equal latency for read/write
Flash has low seek latency, high serial sector read latency and longer write than read times.
A little bit of readahead will be helpful for flash memory. Its latency is low, but sure not zero. Asynchronous readahead will help to hide the latency.
Quoted 7 lines
I was having problem invoking the readahead logic on my compact flash rootfs (ext3) with tweaking the RA with 'hdparm -a' from 8 to 1024 blocks and some benchmarks (I forget which).
Fengguang, what is your favourite benchmark for finding differences in readahead values (running on eg ext3 on a flashdisk), with the current RA semantics in mainline kernels (eg 2.6.23-rc3)?
My favorite test cases are
big file:
time cp $file /dev/null &>/dev/null
time dd if=$file of=/dev/null \ bs=${bs:-4k} &>/dev/null
big file, parallel:
time diff $file $file.clone
small files:
time grep -qr 'doruimi' $dir 2>/dev/null
Don't forget to clear the cache before each run:
echo 2 > /proc/sys/vm/drop_caches
Cheers,
Fengguang
Quoted 73 lines · Fengguang Wu
Quoted 54 lines · Daniel J Blueman
Hi Fengguang,
Quoted 51 lines · James Courtier-Dutton
Quoted 35 lines · Daniel J Blueman
Quoted 7 lines · Jan Engelhardt
Quoted 3 lines · Richard Ballantyne
What file system that is already in the linux kernel do people recommend I use for my laptop that now contains a solid state disk?
If I had to choose, the list of options seems to be:
Quoted 8 lines
- logfs
[unmerged]- UBI layer with any fs you like
[just a guess]- UDF in Spared Flavor (mkudffs --media-type=cdrw --utf8) [does not support ACLs/quotas]
Isn't it that with modern rotational wear-levelling, re-writing hot blocks many times is not an issue, as they are internally moved around anyway? So, using a journalled filesystem such as ext3 is still good (robustness and maturity in mind). Due to lack of write buffering, perhaps a wandering log (journal) filesystem would be more suitable though? I use ext3 on my >35MB/s compact flash filesystem.
I can see there being advantage in selecting a filesystem which is lower complexity due to no additional spatial optimisation complexity, but those advantages do buy other efficiency (eg the Orlov allocator reducing fragmentation, thus less overhead), right?
Also, it would be natural to employ 'elevator=none', but perhaps there is a small advantage in holding a group of flash blocks 'ready' (like SDRAM pages being selected on-chip for lower bus access latency) - however this no longer holds when
logical->physicalremapping is performed, so perhaps it's better without an elevator.Quoted 4 lines
Clearly, benchmarks speak...but perhaps it would make sense to have libata disable the elevator for the (compact) flash block device?
Daniel
Also, sector read ahead will actually have a performance impact on Flash, instead of speed things up with a spinning disc.
For example, a request might read 128 sectors instead of the one requested at little or no extra performance impact for a spinning disc. For flash, reading 128 sectors instead of the one requested will have a noticeable performance impact.
Spinning discs have high seek latency, low serial sector read latency and equal latency for read/write
Flash has low seek latency, high serial sector read latency and longer write than read times.A little bit of readahead will be helpful for flash memory. Its latency is low, but sure not zero. Asynchronous readahead will help to hide the latency.
Quoted 7 lines
I was having problem invoking the readahead logic on my compact flash rootfs (ext3) with tweaking the RA with 'hdparm -a' from 8 to 1024 blocks and some benchmarks (I forget which).
Fengguang, what is your favourite benchmark for finding differences in readahead values (running on eg ext3 on a flashdisk), with the current RA semantics in mainline kernels (eg 2.6.23-rc3)?
My favorite test cases are
big file:
time cp $file/dev/null&>/dev/null
time dd if=$file of=/dev/null \ bs=${bs:-4k} &>/dev/null
Quoted 8 lines
big file, parallel:
time diff $file $file.clonesmall files:
time grep -qr 'doruimi' $dir 2>/dev/nullDon't forget to clear the cache before each run:
echo 2 >/proc/sys/vm/drop_caches
The maximal case we're looking for is where up to 1024-block read-ahead doesn't pay off, but actually wastes finite bandwidth, thus time.
We clearly need a database-type workload which forward reads enough to open the RA window some, but then reads at a different location. We then prove that we benefit with a smaller read ahead window, at negligible cost to your linear case.
To open the RA window, I know we need no competing threads, but how far do we need to sequentially read? I'll cook a micro-benchmark with memory-backed files.
Signature · 1 line
Daniel J Blueman
Quoted 13 lines · Daniel J Blueman
Quoted 12 lines · Jan Engelhardt
Quoted 2 lines · Richard Ballantyne
What file system that is already in the linux kernel do people recommend I use for my laptop that now contains a solid state disk?
If I had to choose, the list of options seems to be:
- logfs
[unmerged]- UBI layer with any fs you like
[just a guess]
Quoted 7 lines
Quoted 2 lines
- UDF in Spared Flavor (mkudffs --media-type=cdrw --utf8) [does not support ACLs/quotas]
Isn't it that with modern rotational wear-levelling, re-writing hot blocks many times is not an issue, as they are internally moved around anyway? So, using a journalled filesystem such as ext3 is still good (robustness and maturity in mind).
Crap hardware (one which only _claim_ to do it) is out there, and is typically cheaper, so users preferentially buy that ;) --
vda
Quoted 22 lines · Denys Vlasenko
Quoted 13 lines · Daniel J Blueman
Quoted 12 lines · Jan Engelhardt
Quoted 2 lines · Richard Ballantyne
What file system that is already in the linux kernel do people recommend I use for my laptop that now contains a solid state disk?
If I had to choose, the list of options seems to be:
- logfs
[unmerged]- UBI layer with any fs you like
[just a guess]Quoted 7 lines
Quoted 2 lines
- UDF in Spared Flavor (mkudffs --media-type=cdrw --utf8) [does not support ACLs/quotas]
Isn't it that with modern rotational wear-levelling, re-writing hot blocks many times is not an issue, as they are internally moved around anyway? So, using a journalled filesystem such as ext3 is still good (robustness and maturity in mind).
Quoted 4 lines
Crap hardware (one which only _claim_ to do it) is out there, and is typically cheaper, so users preferentially buy that ;) --
vda
You might want to check and see what is actually being used for the solid-state disk. Some solid state disks are SRAM and DRAM. SRAM is fast, it doesn't require refresh, is now as cheap as flash, and does R/W forever. It retains its data for 10 years of power being removed by using an embedded battery.
http://en.wikipedia.org/wiki/Solid_state_drive
This is exactly what I proposed on this list a long time ago. It is now a reality.
Cheers,
Dick Johnson
Penguin : Linux version 2.6.22.1 on an i686 machine (5588.30 BogoMips). My book : http://www.AbominableFirebug.com/
_
****************************************************************
The information transmitted in this message is confidential and may be privileged. Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to [email protected] - and destroy all copies of this information, including any attachments, without reading or disclosing them.
Thank you.
Quoted 4 lines · linux-os (Dick Johnson)
http://en.wikipedia.org/wiki/Solid_state_drive
This is exactly what I proposed on this list a long time ago. It is now a reality.
It's been around for a couple of years ;-)
http://forum.pcvsconsole.com/viewthread.php?tid=15802
http://www.anandtech.com/tradeshows/showdoc.aspx?i=2431&p=5