* [parisc-linux] ntpd fails on mlockall()
@ 2000-10-10 2:57 Bdale Garbee
2000-10-10 11:08 ` Richard Hirst
0 siblings, 1 reply; 5+ messages in thread
From: Bdale Garbee @ 2000-10-10 2:57 UTC (permalink / raw)
To: parisc-linux
I built a package of ntp, and it installed ok, but when ntpd goes to launch,
I get the following in daemon.log:
Oct 9 20:51:27 j5k ntpd[19416]: ntpd 4.0.99g Mon Oct 9 20:44:40 MDT 2000 (1)
Oct 9 20:51:27 j5k ntpd[19416]: mlockall(): Cannot allocate memory
And in dmesg output, I see:
do_page_fault() pid=19416 command='ntpd'
PSW : 0004000a GR 1 : 40053cf0 GR 2 : 40052777 GR 3 : 40054c44
GR 4 : 400544f0 GR 5 : 4005ec4c GR 6 : 4005ec4c GR 7 : 00000000
GR 8 : ffffffff GR 9 : 00059cf0 GR10 : 2001fd24 GR11 : 0005c140
GR12 : 0003a800 GR13 : 0003a800 GR14 : 0005c140 GR15 : 0005c140
GR16 : 0005c140 GR17 : 00000001 GR18 : 0005c140 GR19 : 40197148
GR20 : 00000000 GR21 : 00000000 GR22 : 00001fe9 GR23 : 00000004
GR24 : 000001b0 GR25 : 0005d020 GR26 : 4005ec88 GR27 : 00045140
GR28 : 00000000 GR29 : 0005f1b8 GR30 : 200203c0 GR31 : 40083f13
SR0 : 00000000 SR1 : 0000200b SR2 : 00000000 SR3 : 0000200b
SR4 : 0000200b SR5 : 0000200b SR6 : 0000200b SR7 : 0000200b
IASQ : 0000200b 0000200b IAOQ : 4005277f 40052783 ORIG_R28 : 00000000
IIR : 0eb41288 ISR : 0000200b IOR : 00000004
sending SIGSEGV
Anyone know what's going on?
Bdale
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [parisc-linux] ntpd fails on mlockall()
2000-10-10 2:57 [parisc-linux] ntpd fails on mlockall() Bdale Garbee
@ 2000-10-10 11:08 ` Richard Hirst
2000-10-10 20:53 ` Richard Hirst
0 siblings, 1 reply; 5+ messages in thread
From: Richard Hirst @ 2000-10-10 11:08 UTC (permalink / raw)
To: Bdale Garbee; +Cc: parisc-linux
On Mon, Oct 09, 2000 at 08:57:00PM -0600, Bdale Garbee wrote:
> I built a package of ntp, and it installed ok, but when ntpd goes to launch,
> I get the following in daemon.log:
>
> Oct 9 20:51:27 j5k ntpd[19416]: ntpd 4.0.99g Mon Oct 9 20:44:40 MDT 2000 (1)
> Oct 9 20:51:27 j5k ntpd[19416]: mlockall(): Cannot allocate memory
A simple prog that just calls mlockall() fails as well. It is because
we currently allocate a massive stack (256MB?) for every process, and
mlockall() tries to actually claim the memory for that stack. I tried
allocating just a 1MB stack in fs/exec.c, and my simple mlockall()
prog then worked.
Richard
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [parisc-linux] ntpd fails on mlockall()
2000-10-10 11:08 ` Richard Hirst
@ 2000-10-10 20:53 ` Richard Hirst
[not found] ` <8766n0ynjw.fsf@rover.gag.com>
0 siblings, 1 reply; 5+ messages in thread
From: Richard Hirst @ 2000-10-10 20:53 UTC (permalink / raw)
To: Bdale Garbee; +Cc: parisc-linux
On Tue, Oct 10, 2000 at 12:08:41PM +0100, Richard Hirst wrote:
> On Mon, Oct 09, 2000 at 08:57:00PM -0600, Bdale Garbee wrote:
> > I built a package of ntp, and it installed ok, but when ntpd goes to launch,
> > I get the following in daemon.log:
> >
> > Oct 9 20:51:27 j5k ntpd[19416]: ntpd 4.0.99g Mon Oct 9 20:44:40 MDT 2000 (1)
> > Oct 9 20:51:27 j5k ntpd[19416]: mlockall(): Cannot allocate memory
>
> A simple prog that just calls mlockall() fails as well. It is because
> we currently allocate a massive stack (256MB?) for every process, and
> mlockall() tries to actually claim the memory for that stack. I tried
> allocating just a 1MB stack in fs/exec.c, and my simple mlockall()
> prog then worked.
I've changed the kernel to grow the user stack dynamically, so
hopefully your ntpd will work now.
Richard
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2000-10-11 14:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-10 2:57 [parisc-linux] ntpd fails on mlockall() Bdale Garbee
2000-10-10 11:08 ` Richard Hirst
2000-10-10 20:53 ` Richard Hirst
[not found] ` <8766n0ynjw.fsf@rover.gag.com>
2000-10-11 12:09 ` Richard Hirst
2000-10-11 14:47 ` David Huggins-Daines
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.