News for hackers. Stuff that matters.
Re:NILFS: A File System to Make SSDs Scream by jsonscripter on Wednesday June 03, 2009 @11:56AM (#639923)
How would you implement a swap on such a filesystem? You couldn't, could you?

Oh, and the jokes about having NILFS on your hard drive are going to be so lame...

Re:NILFS: A File System to Make SSDs Scream by jerf on Wednesday June 03, 2009 @12:38PM (#639988)
"How would you implement a swap on such a filesystem? You couldn't, could you?"

The days of "swap" are numbered. The future is a smart memory hierarchy that uses knowledge about size/speed tradeoffs to make smart decisions about where to store things, but that won't look much like "swap".

Even with SSDs, it has become very unusual for "the system is currently swapping" to mean anything other than "the system's performance characteristics just became completely unacceptable". I stopped using a swap partition somewhere around 512MB to 1GB, and now my laptop that I didn't even try to max out the memory on shipped with 4GB. I can't hardly even fill up the cached buffers in 4GB in any reasonable period of time.

(Please note the difference between "very unusual" and "never". In fact, I can cite a server in my care that benefits from using a bit of swap. But that server is the exception, not the rule.)

Re:NILFS: A File System to Make SSDs Scream by jongraehl on Wednesday June 03, 2009 @02:15PM (#640136)
We'll still have swap as long as CPUs support virtual memory. Nothing beats using a dumb programming language and process model, and without explicitly deciding anything, being able to scale past physical memory until your working set just barely fits.

Further, there may be some performance benefit to swapping idle process memory to make room for more buffer cache.

It's true that for interactive use (especially a laptop with spun-down drives), you may be happy without swap. But I don't see the facility being mothballed.

Re:NILFS: A File System to Make SSDs Scream by pmjordan on Wednesday June 03, 2009 @12:12PM (#639951)
How would you implement a swap on such a filesystem? You couldn't, could you?

I guess that's mostly a non-issue, as on Linux you usually don't use a swap file but a whole volume. There is support for using files, but you only use it as a last resort. Let's face it, if you know how to set up NILFS2 then you're probably able to create a swap partition.

Re:NILFS: A File System to Make SSDs Scream by Freaky on Wednesday June 03, 2009 @05:28PM (#640467)
> How would you implement a swap on such a filesystem? You couldn't, could you?

Why not? It's just a filesystem with layout that's a bit different to most, users of the filesystem should be completely oblivious to it.

Swap just needs a file it can randomly read and write to; if a fs can't provide such random access, it's not just swap it'll be useless for.

Re:NILFS: A File System to Make SSDs Scream by kingnothing on Thursday June 04, 2009 @04:08AM (#641108)
I liked the question but I had to downvote you for trying to turn this into reddit.
Re:NILFS: A File System to Make SSDs Scream by menloparkbum on Wednesday June 03, 2009 @12:01PM (#639932)
the jokes about having NILFS on your hard drive are going to be so lame

there's a node I'd like to fsck!

Re:NILFS: A File System to Make SSDs Scream by bbuffone on Wednesday June 03, 2009 @01:42PM (#640077)
Seems like a challenge to me... so...

NILFS or MILFS whats the difference? About 35 years ...awwwww

Re:NILFS: A File System to Make SSDs Scream by adammarkey on Wednesday June 03, 2009 @01:44PM (#640079)
My hard drive is already filled with MILFS and performs quite well for my requirements.

/me ducks and covers