Re: Fix SWSUSP & !SWAP

Andrew Morton
2003-04-24T00:56:50Z

CaT <cat@zip.com.au> wrote:
>
> On Wed, Apr 23, 2003 at 05:38:37PM -0700, Andrew Morton wrote:
> > "Randy.Dunlap" <rddunlap@osdl.org> wrote:
> > >
> > > That may be simple for you, but for lots of users, adding a partition
> > > (to a ususally full disk drive) isn't simple. It means backups,
> > > shrink a filesystem, shrink a partition, add a partition, and run
> > > mkswap on it. Yes, the latter 2 are simple, but the former ones
> > > are not.
> >
> > Yeah. swsusp is pretty much the only reason why you would want to have a
> > swap partition at all in a 2.5/2.6 kernel.
>
> Is there really no difference any longer in terms of speed?

Nope. Not unless the swapfile which you created is splattered all over the
disk, in whcih case you already have serious problems with that filesystem.

There will some performance differences with resume, because it is doing
page-at-a-time synchronous IO. The device-level caching should make that
acceptable though.