[lkml]   [2002]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [announce] swap mini-howto
Jeff Garzik wrote:
> ...
> That said, I would like to again point out that using sparse swapfiles
> should still be discouraged. It may be supported, but it's much better
> for system performance and stability, IMO, if the sysadmin makes certain
> all swapfiles are 100% allocated before they are mentioned to the swap
> subsystem.

That got stamped out. swapon will fail if the file isn't fully
instantiated on disk:

static int setup_swap_extents(struct swap_info_struct *sis)
block = bmap(inode, probe_block + block_in_page);
if (block == 0)
goto bad_bmap;

printk(KERN_ERR "swapon: swapfile has holes\n");
ret = -EINVAL;
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:30    [W:0.069 / U:1.404 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site