#6469 NORM Never A: jffs2 doesn't support swapping (swapon)

Zarro Boogs per Child bugtracker at laptop.org
Fri Feb 15 04:03:18 EST 2008


#6469: jffs2 doesn't support swapping (swapon)
--------------------+-------------------------------------------------------
 Reporter:  gnu     |       Owner:  dilinger                         
     Type:  defect  |      Status:  new                              
 Priority:  normal  |   Milestone:  Never Assigned                   
Component:  kernel  |     Version:  Development build as of this date
 Keywords:          |    Verified:  0                                
 Blocking:          |   Blockedby:                                   
--------------------+-------------------------------------------------------
 Opinions differ about whether it is *wise* to make paging/swapping space
 on NAND flash.  But it is clear that the kernel should not be enforcing
 one person's opinion by making it *impossible* to swap to a file in NAND.

 Currently (on software build update.1-rc2, MP G1G1 laptop), doing:

 # cd /home/olpc

 # dd if=/dev/zero of=swapfile bs=1024k count=20

 # mkswap swapfile

 # swapon swapfile

 swapon: swapfile: Invalid argument

 It fails.  The same commands work fine on my FC6 system, using an ext3
 root filesystem.

 [I suspect that making as little as 20MB of swap space might help system
 performance, by letting it swap out modified but readonly pages.  Rather
 than what currently happens, which is that those pages are stuck in RAM
 until the process dies.  I'd like to test that theory, but there's this
 bug...]

-- 
Ticket URL: <http://dev.laptop.org/ticket/6469>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list