Linux NILFS development
 help / color / mirror / Atom feed
* Using nilfs to increase performance of NAND/SSD flash devices.
@ 2008-02-01 20:31 Kevin Burton
       [not found] ` <30c6373b0802011231t75a8a00djab3c82b4de3fa928-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Burton @ 2008-02-01 20:31 UTC (permalink / raw)
  To: users-JrjvKiOkagjYtjvyW6yDsg


[-- Attachment #1.1: Type: text/plain, Size: 1583 bytes --]

Hey guys.

I'm playing with nilfs2 on an Mtron SSD 32G NAND Flash SATA drive.

NAND is GREAT for random reads but horrible for random writes.

A log filesystem fixes this problem because when the disk does random writes
it
will just read the block from the previous erase block and wrote a new block
with the data to the end of the drive, thereby simulating sequential writes.

I tested this theory by comparing nilfs2 to XFS on the mtron with a
sysbenchm
random write to test.  Sure enough nilfs2 beat out XFS by 8.5x and wrote at
about 50MB/s which is amazingly impressive.

The problem is that with I used the sysbench OLTP benchmark it was only
about
10% faster than an HDD running XFS.

Not too impressive.

The OLTP benchmark simulates a MySQL box doing lots of random DELETE,
UPDATE,
and INSERT commands so you end up seeing lots or random writes to the disk.

In theory nilfs2 should be able to boost hte performance here but I didn't
see
this in practice.

I think what might be happening is that the consistent snapshot support
might be
slowing down performance by keeping older blogs on disk and doing too many
sequential writes thereby seeing slower performance.

Is it possible to disable checkpointing to test my theory?  I'm just about
to
dive into the source to test this out but I wanted to post here first to get
your thoughts.

Onward!

Kevin

-- 
Founder/CEO Tailrank.com
Location: San Francisco, CA
AIM/YIM: sfburtonator
Skype: burtonator
Work: http://spinn3r.com and http://tailrank.com
Blog: http://feedblog.org
Cell: 415-637-8078
Fax: 1-415-358-419 PIN: 0092

[-- Attachment #1.2: Type: text/html, Size: 1890 bytes --]

[-- Attachment #2: Type: text/plain, Size: 158 bytes --]

_______________________________________________
users mailing list
users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org
https://www.nilfs.org/mailman/listinfo/users

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Using nilfs to increase performance of NAND/SSD flash devices.
       [not found] ` <30c6373b0802011231t75a8a00djab3c82b4de3fa928-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2008-02-04 10:00   ` Chris Samuel
  2008-02-05 12:59   ` Ryusuke Konishi
  1 sibling, 0 replies; 3+ messages in thread
From: Chris Samuel @ 2008-02-04 10:00 UTC (permalink / raw)
  To: NILFS Users mailing list


[-- Attachment #1.1: Type: text/plain, Size: 551 bytes --]

On Sat, 2 Feb 2008, Kevin Burton wrote:

> I tested this theory by comparing nilfs2 to XFS on the mtron with a
> sysbenchm random write to test.  Sure enough nilfs2 beat out XFS by
> 8.5x and wrote at about 50MB/s which is amazingly impressive.

Out of interest, have you considered comparing it to logfs on the same 
device too ?

cheers!
Chris
-- 
 Chris Samuel  :  http://www.csamuel.org/  :  Melbourne, VIC

This email may come with a PGP signature as a file. Do not panic.
For more info see: http://en.wikipedia.org/wiki/OpenPGP

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 481 bytes --]

[-- Attachment #2: Type: text/plain, Size: 158 bytes --]

_______________________________________________
users mailing list
users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org
https://www.nilfs.org/mailman/listinfo/users

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Using nilfs to increase performance of NAND/SSD flash devices.
       [not found] ` <30c6373b0802011231t75a8a00djab3c82b4de3fa928-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2008-02-04 10:00   ` Chris Samuel
@ 2008-02-05 12:59   ` Ryusuke Konishi
  1 sibling, 0 replies; 3+ messages in thread
From: Ryusuke Konishi @ 2008-02-05 12:59 UTC (permalink / raw)
  To: NILFS Users mailing list

Hi Kevin,

On Fri, 2008-02-01 at 12:31 -0800, Kevin Burton wrote:
> 
> Hey guys.
> 
> I'm playing with nilfs2 on an Mtron SSD 32G NAND Flash SATA drive.

We're also preparing for the test on SSD!

> NAND is GREAT for random reads but horrible for random writes.
> 
> A log filesystem fixes this problem because when the disk does random
> writes it
> will just read the block from the previous erase block and wrote a new
> block
> with the data to the end of the drive, thereby simulating sequential
> writes.
> 
> I tested this theory by comparing nilfs2 to XFS on the mtron with a
> sysbenchm
> random write to test.  Sure enough nilfs2 beat out XFS by 8.5x and
> wrote at
> about 50MB/s which is amazingly impressive.

Yes, this is a well-known effect and an age-old application of lfs.
Though the primary motivation of NILFS was not in this use,
I think it's one of interesting matters when considering the recent
rise of the NAND flash devices and their future trends especially
for their increase in the capacity. 

As Chris pointed out, we should once compare lfs-like filesystems
justly because we have some choices for this purpose.

> The problem is that with I used the sysbench OLTP benchmark it was
> only about
> 10% faster than an HDD running XFS.
> 
> Not too impressive.
> 
> The OLTP benchmark simulates a MySQL box doing lots of random DELETE,
> UPDATE,
> and INSERT commands so you end up seeing lots or random writes to the
> disk.

Umm, I don't know the reason why the OLTP benchmark doesn't show 
the expected result.  Does it invoke many synchronous writes? 

NILFS incurs overheads for HDD read, so I'm also concerned with read
performance of SSD.


> Is it possible to disable checkpointing to test my theory?  I'm just
> about to
> dive into the source to test this out but I wanted to post here first
> to get
> your thoughts.

No, I think we cannot disable checkpointing.
But if we have good idea to test your theory, we'll reply later.

Regards,
-- 
Ryusuke Konishi
NILFS team NTT
http://www.nilfs.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-02-05 12:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-01 20:31 Using nilfs to increase performance of NAND/SSD flash devices Kevin Burton
     [not found] ` <30c6373b0802011231t75a8a00djab3c82b4de3fa928-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-02-04 10:00   ` Chris Samuel
2008-02-05 12:59   ` Ryusuke Konishi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox