Re: amd crashes when memory is low

From: Danny Braniss <danny_at_cs.huji.ac.il>
Date: Wed, 15 Aug 2007 09:38:39 +0300
> > Hi,
> > 	This is not new, but now that freebsd current is almost out, I'm
> > trying it out again. amd (am-utils version 6.1.5) on an amd64 will crash when
> > vm memory is low. In the past it was suggested to add 'plock=no' to
> > /etc/amd.conf, but I have to check if it's read since I still see:
> > 	Couldn't lock process pages in memory using mlockall(): \
> > 		Resource temporarily unavailable
> > 
> > I'll try it out under i386 and report later.
> 
> ok, it works under i386, because mlockall() does not fail, and hence
> amd is locked in core, while it failes under amd64. this does not explain
> why it crashes when swapped out, but that is another problem?
> 

to the am-utils maintainers:
	changing the call to mlockall, from
		mlockall(MCL_FUTURE|MCL_CURRENT)
	to
		mlockall(MCL_FUTURE)
solves the problem.

danny

	
Received on Wed Aug 15 2007 - 04:38:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:16 UTC