On Fri, 2007-03-09 at 09:15 +0100, Marek Piechut wrote:
> Hello.
> 
> I was copying a big file (larger than capacity of my ram) to jfs
> partition and found that jfs is using swap. It makes it very sloooow
> with large files and does a lot of unneeded io. Is there any way to
> make it avoid of using swap? (checked with xfs and it uses ram only,
> reiserfs too).

jfs doesn't "use" swap.  The kernel appears to be swapping other things
out of memory as the file fills the page cache.  I'm not sure why jfs
would behave any differently than xfs or reiserfs.  Could it be that you
had more applications running (or the applications were using more
memory) when you copied to jfs?

You should be able to tune this behavior by lowering the value of
swappiness.  The default swappiness value is 60.  You can lower it by
doing something like:
        cat 20 > /proc/sys/vm/swappiness

It wouldn't hurt to go as low as zero.

> Thanks.
> Marek Piechut.
-- 
David Kleikamp
IBM Linux Technology Center


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jfs-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jfs-discussion

Reply via email to