linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Ext4 on SSD Intel X25-M
@ 2009-11-12 13:59 Renato S. Yamane
  2009-11-12 15:11 ` Eric Sandeen
  2009-11-12 15:30 ` Theodore Tso
  0 siblings, 2 replies; 20+ messages in thread
From: Renato S. Yamane @ 2009-11-12 13:59 UTC (permalink / raw)
  To: linux-ext4

Hi,

[please, leave me on cc because I'm not subscribed on this ML]

I'm using Intel SSD X25-M on my laptop, and I always hear that is not a 
good idea use journal on SSD (it decrease the life time).

I ask Intel about this, but I don't receive any answer.

So, I would like to know if is possible disable Journal on EXT4.

I'm using Debian Testing (squeeze).

Regards,
Renato S. Yamane

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: Ext4 on SSD Intel X25-M
@ 2010-06-27 17:47 Nebojsa Trpkovic
  2010-06-29 13:56 ` tytso
  0 siblings, 1 reply; 20+ messages in thread
From: Nebojsa Trpkovic @ 2010-06-27 17:47 UTC (permalink / raw)
  To: linux-ext4

Hello.

I've found this old thread

http://thread.gmane.org/gmane.comp.file-systems.ext4/16386/focus=16444

and wanted to contribute a piece of my exiriance.

As I don't know if putting right subject will be enough to make reply on
right thread, I'm putting to BCC addresses of all coresponders in old
thread.

I've noticed that there is a difference between
/sys/fs/ext4/sdXX/lifetime_write_kbytes
and host writes read from SSD itself.

I'll put aside issue of losing lifetime_write_kbytes accuracy after
unclean reboot/shutdown:
http://thread.gmane.org/gmane.comp.file-systems.ext4/19734

Guess that session_write_kbytes doesn't succed to be added to
lifetime_write_kbytes in that particular case.

In normal desktop operation "host writes" counter on SSD increases at
roughly ~2/3 compared to lifetime_write_kbytes.

My best guess is that host itself uses a lot of optimisation to reduce
writing to NAND itself.

Besides that, I've noticed that my commit=100 mount option helps also.
Changing (just for testing) to something realy big, like commit=9000,
gave even further improvement, but not worth staying with risk of losing
(that much) data. It seems that ext4 writes a lot to filesystem, but
many of those writes are overwrites. If we flush them to host just once
in 100 seconds, we're getting a lot of saving.

As I wanted to make even my swap TRIMable, I've put it in the file on
ext4 instead of separate partition. I've made it using dd with seek=500
bs=1M options. ext4's lifetime_write_kbytes increased by 500MB, and host
writes did not incrase at all, even after 100 seconds. Ok, I know that
ext4 did not write 500MB of data to filesystem, but this is one more
thing why one should not trust lifetime_write_kbytes.

So, the moral of my story would be not to trust lifetime_write_kbytes,
but to read host writes from SSD.

I noticed that Intel's Solid State Drive Toolbox software (running in
Windows) gives the amount of Host Lifetime Writes that equales to
S.M.A.R.T attribute 225 (Load_Cycle_Count) multiplied with 32MB.
That's the way I track it in Linux.

Nebojsa Trpkovic





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

end of thread, other threads:[~2010-06-29 15:12 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-12 13:59 Ext4 on SSD Intel X25-M Renato S. Yamane
2009-11-12 15:11 ` Eric Sandeen
2009-11-12 15:30 ` Theodore Tso
2009-11-12 20:06   ` Renato S. Yamane
2009-11-13 11:39   ` Andi Kleen
2009-11-13 14:13     ` Theodore Tso
2009-11-13 22:03   ` Florian Weimer
2009-11-15 21:15     ` Renato S. Yamane
2009-11-15 21:18       ` Florian Weimer
2009-11-15 21:30         ` Eric Sandeen
2009-11-15 21:46           ` Renato S. Yamane
2009-11-15 22:11             ` Theodore Tso
2009-11-15 22:18               ` Renato S. Yamane
2009-11-16 18:40               ` Theodore Tso
2009-11-16 19:00                 ` Renato S. Yamane
2009-11-15 22:01           ` Theodore Tso
  -- strict thread matches above, loose matches on Subject: below --
2010-06-27 17:47 Nebojsa Trpkovic
2010-06-29 13:56 ` tytso
2010-06-29 14:35   ` Nebojsa Trpkovic
2010-06-29 15:12     ` Nebojsa Trpkovic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).