On Mon, 2 Aug 2004, josh wrote:

> A while back I had problems with running squid on a Cobalt RaQ
> XTR. Then I realized it had to do with how swap was triggered. Since
> squid actually has a setting that tells squid how much ram to swallow
> on startup it is a very good basic tester of available ram and swap funtion.

Not really...

> I have been using squid like this but it is not perfect. For instance
> the reports and log files are not those of a diagnostic program. Can
> someone suggest a better alternative for testing ram and disk swapping.

RAM Test: memtest86 (on X86 type hardware only)

Swap test: the attached silly program could be useful..


General system health: Repeated Linux kernel compiles, in parallell to 
stress VM system even more..

Regards
Henrik
#include <stdlib.h>

int main(int argc, char **argv)
{
  char *buf;
  int i;
  int size;

  size=atoi(argv[1]);

  buf=calloc(size * 1024,1);

  for(;;)
  for(i=0;i<size;i++) {
    buf[i*1024]=buf[(size-i)*1024-1];
  }
}

Reply via email to