Skip to contentSkip to conversation

blog article about f2fs on smr drives

DISCUSSION Marc Lehmann 3 participants 4 messages Oct 8, 2015 – Nov 14, 2015

lore
Share & tools
lore
#0 lore raw

Hi!

I write a short and very preliminary blog article about hoe to get SMR drives to work, fast, with f2fs.

http://blog.schmorp.de/2015-10-08-smr-archive-drives-fast-now.html

This is just a heads up - due to external events, I haven't been able to look into new developments (such as background_gc=sync), which look evry exciting, but I think this informastion needs to get out, as there are a lot of people who suffer badly with these drives, mostly due to kernel issues, but of course also due to the filesystem situation.

Signature · 8 lines
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [email protected]
      -=====/_/_//_/\_,_/ /_/\_\

------------------------------------------------------------------------------
#1 lore raw
Quoted 5 lines · Marc Lehmann

Hi!

I write a short and very preliminary blog article about hoe to get SMR drives to work, fast, with f2fs.

Quoted 7 lines
   http://blog.schmorp.de/2015-10-08-smr-archive-drives-fast-now.html

This is just a heads up - due to external events, I haven't been able to look into new developments (such as background_gc=sync), which look evry exciting, but I think this informastion needs to get out, as there are a lot of people who suffer badly with these drives, mostly due to kernel issues, but of course also due to the filesystem situation.

Cool and pretty much interesting topic to me!

BTW, it might be best to publish this kind of investigation as papers or presentation later.

Thanks,

Quoted 14 lines
Signature · 13 lines
-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [email protected]
      -=====/_/_//_/\_,_/ /_/\_\

------------------------------------------------------------------------------
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

------------------------------------------------------------------------------

#2 lore raw
In reply to Marc Lehmann

Hello,

Quoted 6 lines

-----Original Message-----
From: Marc Lehmann [mailto:[email protected]]
Sent: Thursday, October 08, 2015 9:57 PM
To: [email protected]
Subject: [f2fs-dev] blog article about f2fs on smr drives

Quoted 6 lines

Hi!

I write a short and very preliminary blog article about hoe to get SMR drives to work, fast, with f2fs.

   http://blog.schmorp.de/2015-10-08-smr-archive-drives-fast-now.html

Really nice experience sharing!

Quoted 6 lines

This is just a heads up - due to external events, I haven't been able to look into new developments (such as background_gc=sync), which look evry exciting, but I think this informastion needs to get out, as there are a lot of people who suffer badly with these drives, mostly due to kernel issues, but of course also due to the filesystem situation.

I have tracked your IO trace log, I found an issue which may slow down our App, so I wrote the patch to optimize the flow mainly for SMR drive. I think we can tune up with /sys/fs/f2fs/(device)/ra_nid_pages to avoid long latency of creating node in f2fs.

If you want to have a test with the new tunable parameter, last git tree is preferred. :)

Thanks,

Quoted 9 lines

--

                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [email protected]
      -=====/_/_//_/\_,_/ /_/\_\
Quoted 5 lines

------------------------------------------------------------------------------
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

------------------------------------------------------------------------------

#3 lore raw

So sorry again for me regular going into hiding, but I am now back on the SMR drive problems :)

So, first, a question - how many of the changes are now in 4.3 (and unfortunately, it seems 4.3 is still not stable with these drives, still leaving only 3.18 as an full option).

Next, I am trying to replicate my tests with faster data, and I get rather erratic results, e.g. (tar|buffer|tar, average file size 266MB, the source volume is capable of delivering sustained 200MB/s, so no bottleneck on the read side):

summary: 2380.2 GB in 15 h 58 min 30.0 sec - average of 42.4 MB/s

While there are stretches at >>100MB/s, most of the time, this is at less, and often for long stretches at ~10MB/s, which is the reason the end result is (relatively) bad.

And lastly, is there a document describing the implementation of encryption in the fs, and the goals (privacy? integrity? both?)

(If there isn't, I plan to review the encryption design in f2fs myself).

Quoted 4 lines · Jaegeuk Kim

Cool and pretty much interesting topic to me!

BTW, it might be best to publish this kind of investigation as papers or presentation later.

Maybe, I wonder how one would go about that (I never was involved with a serious paper, I will unlikely give presentations on that, but yes, I think somebody should :).

Quoted 4 lines · Chao Yu

I have tracked your IO trace log, I found an issue which may slow down our App, so I wrote the patch to optimize the flow mainly for SMR drive. I think we can tune up with /sys/fs/f2fs/(device)/ra_nid_pages to avoid long latency of creating node in f2fs.

Maybe that could help with my problem - a git pull of the 3.18 branch seems to have your changes in it - anything in specific that I should do?

from the Changes, it doesn't quite sound as if it will be a big help, as there is very little read traffic overall, but I didn't analyze the IO trace :)

it does sound like something that could be very useful for rotational disks in general, under normal conditions (reading), though.

Quoted 2 lines

If you want to have a test with the new tunable parameter, last git tree is preferred. :)

Sure, will be happy to do that, what should I tune how? And thanks for working on this!

Signature · 8 lines
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [email protected]
      -=====/_/_//_/\_,_/ /_/\_\

------------------------------------------------------------------------------