Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: Unable to load interpreter // VM thrashing or hardware ???
@ 1998-12-01 18:12 Greg Lindahl
  1998-12-01 18:38 ` Bob McElrath
  0 siblings, 1 reply; 6+ messages in thread
From: Greg Lindahl @ 1998-12-01 18:12 UTC (permalink / raw)
  To: axp-list

> > (3) The old panacea of setenv MEMORY_SIZE 252 doesn't help either
> 
> What does this have to do with problems of a 256MB malloc?

It was a workaround for a MILO bug on machines with 128 or 256 megs of
ram. The symptom was a freeze. Clearly not relevant here.

> Watching with top, I can see that during your "Testing..." phase the swap
> increases dramatically.  On my machine it goes up to ~300MB.  During
> "Filling..." it drops to ~128MB.  I have about 50MB of other apps running at
> the same time.  I don't know why it would use 300MB of swap, but if you only
> have 2x136M, this is clearly where your problem lies.  (I have 512MB swap --
> most people recommend to have twice as much swap as you have RAM).

Don't be confused by this. Your machine may also be reading files and
whatnot, which means that your swap usage is higher than his. His
total available VM is 256+256; yours is 256+512. The correct
diagnostic is make sure that swap is not full, and then to look at the
free pages.

> I have an LX 533MHz, 256MB RAM, 512MB swap space, BusLogic BT-958
> (UltraWide, with IBM Ultrastar disk), RH 5.1 install, but kernel 2.1.129.

Note just 1 swap partition. I wonder if the UX had just one. The
machines that fail have 2. Also note adaptec. In the 2.0.35 kernel,
which the failing system has, the adaptec driver is fubar, definitely
fubar for multiple disks.

-- g


^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Unable to load interpreter // VM thrashing or hardware ???
@ 1998-12-01 18:48 Greg Lindahl
  0 siblings, 0 replies; 6+ messages in thread
From: Greg Lindahl @ 1998-12-01 18:48 UTC (permalink / raw)
  To: axp-list

> It's undoubtedly reading files...  I don't know where to look to find free
> pages but /proc/sys/vm/freepages gives:

There's more than one way to look:

[lindahl@spica lindahl]$ vmstat 2
 procs                  memory    swap        io    system         cpu
 r b w  swpd  free  buff cache  si  so   bi   bo   in   cs  us  sy  id
 0 0 0  1004  8764 19248 197448   0   0    1    0    0   14   0   0 23
 0 0 0  1004  8664 19248 197448   0   0    0    0  142   86   0   2 98
 0 0 0  1004  8664 19248 197448   0   0    0   16  148   73   0   1 99

"free" in this context is the free pages of ram.

> In top, the "free" swap field is always exactly 512M - "used".

You want the free Mem field, not free swap.

The guy with the problem is apparently seeing the free Mem fall to 0
while there is still free swap left.

-- g


^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Unable to load interpreter ???
@ 1998-11-30 16:13 Dave Beck
  1998-12-01 17:26 ` Unable to load interpreter // VM thrashing or hardware ??? Stefan Boresch
  0 siblings, 1 reply; 6+ messages in thread
From: Dave Beck @ 1998-11-30 16:13 UTC (permalink / raw)
  To: axp-list, Stefan Boresch

A somewhat related question:
	"free" reports what for the swap?
I may get shot for saying this, but I don't think the swap space larger
than 128Mb is _truly_ working in some of the new kernels.  It appears to
report is correctly, but I have notice that if my alpha hits that swap
point (only happened twice) stuff starts breaking and I get, among other
things "Cannot load interpreter" issues.  This seems to be the case in:
2.1.129 and 2.0.36.  No, I haven't run diffs or looked at CHANGELOGS to
see if that code was altered in the kernel source.

Quoting Sascha Schumann (sas@schell.de):
> On Mon, 30 Nov 1998, Stefan Boresch wrote:
> 
> > 
> > > You wonder that it cannot load anything without having memory? 
> > 
> > No, you misunderstand my question / complaint.  The system ought
> > to have memory:  E.g. I have
> > 
> > 256MB RAM, > 300MB swapspace, so in an easy calculation, let's say
> > I have > 500MB of virtual memory.  
> > 
> > I can trigger the 'Cannot load interpreter' error by running a little
> > program (as I pointed out, the one D. Gilbert posted here a while 
> > ago) that accesses in an infinite loop appr. 260MB of memory. So,
> > knowing that the kernel needs some memory, it's clear that I will see
> > swapping, and I do.  Top clearly shows that some swap space is used,
> > but I am way below 500 MB of virtual memory.  Nevertheless, after
> > an hour or so, the 'Cannot load interpreter' error crops up.  This is
> > what I don't understand...
> 
> Ok, what does your /proc/sys/kernel/{file-max,inode-max} say?
> 
>           Regards,
> 						                                
>                             Sascha Schumann | 
>                                  Consultant | finger sas@schell.de
>                                             | for PGP public key
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

-- 
Dave Beck 
dave@arginine.umdnj.edu                 Sites of interest (set 4):
Computer Science and Biology            http://www.santafe.edu/projects/swarm/
Drexel University, Philadelphia PA      http://www.drexel.edu/


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1998-12-02  9:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-01 18:12 Unable to load interpreter // VM thrashing or hardware ??? Greg Lindahl
1998-12-01 18:38 ` Bob McElrath
  -- strict thread matches above, loose matches on Subject: below --
1998-12-01 18:48 Greg Lindahl
1998-11-30 16:13 Unable to load interpreter ??? Dave Beck
1998-12-01 17:26 ` Unable to load interpreter // VM thrashing or hardware ??? Stefan Boresch
1998-12-01 17:56   ` Bob McElrath
1998-12-02  9:49     ` Stefan Boresch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox