Mailinglist Archive: opensuse (4344 mails)

< Previous Next >
Re: [SLE] How to detect if a swap partition is available and active?
  • From: Anders Johansson <andjoh@xxxxxxxxxx>
  • Date: Sun, 21 Aug 2005 00:04:32 +0200
  • Message-id: <200508210004.32669.andjoh@xxxxxxxxxx>
On Saturday 20 August 2005 23:52, Robert Paulsen wrote:
> Simply allocating the memory does not cause the swapper to be used. Each
> page of the memory must be also touched.

One also has to declare all variables one uses, and return a value at the end
of the program, and change the permissions of the program to allow execution,
and.......

> Then, there will still not be much
> activity if the memory is not touched repeatedly, especially if you want to
> see both swap in and swap out.

That wasn't the object of the exercise at all. I said if you wanted to see if
the swap is actually working, not how well it's working, or how performant it
is, or how intelligent the algorithm is.

I said it was an interesting program, but just to see if swap is actually
working, it's overkill


< Previous Next >