On Saturday 20 August 2005 14:53, Robert Paulsen wrote:
Both are good ways of seeing if the kernel thinks it has swap available, but I suspect the only way to see if it's actually working (as in 'no bugs') is to actually allocate enough memory that the kernel starts swapping. A small program that does nothing but allocate memory wouldn't take many seconds to write
It's a little more complicated than you might think
The program you link to looks interesting and useful. But it wasn't what I was talking about. I was talking about allocating memory just to see if the system actually is able to use the swap it claims to be. This is a 5 second job. This program you point to does more than that. But it looks very interesting, and could probably come in handy as a base for a benchmarking tool