Subject: CPU time limit?
To: netbsd <netbsd-help@netbsd.org>
From: Andy Ruhl <acruhl@gmail.com>
List: netbsd-help
Date: 06/13/2005 14:07:08
I got this error trying to do something with a PHP ap from a web front
end on a stock 2.0.2 i386 machine:

[client x.x.x.x] PHP Fatal error:  Maximum execution time of 30
seconds exceeded in /someurl/gallery/save_photos.php on line 163,
referer: http://some.url/gallery/save_photos.php

I'm not sure why I would get this?=20

For a normal user, the cpu time limit is set to unlimited. I'm not
sure what exact sysctl I need to look at, but this is what I have if I
just grep on limit (excluding non proc stuff):

proc.curproc.rlimit.cputime.soft =3D unlimited
proc.curproc.rlimit.cputime.hard =3D unlimited
proc.curproc.rlimit.filesize.soft =3D unlimited
proc.curproc.rlimit.filesize.hard =3D unlimited
proc.curproc.rlimit.datasize.soft =3D 134217728
proc.curproc.rlimit.datasize.hard =3D 1073741824
proc.curproc.rlimit.stacksize.soft =3D 2097152
proc.curproc.rlimit.stacksize.hard =3D 33554432
proc.curproc.rlimit.coredumpsize.soft =3D unlimited
proc.curproc.rlimit.coredumpsize.hard =3D unlimited
proc.curproc.rlimit.memoryuse.soft =3D 450527232
proc.curproc.rlimit.memoryuse.hard =3D 450527232
proc.curproc.rlimit.memorylocked.soft =3D 150175744
proc.curproc.rlimit.memorylocked.hard =3D 450527232
proc.curproc.rlimit.maxproc.soft =3D 160
proc.curproc.rlimit.maxproc.hard =3D 532
proc.curproc.rlimit.descriptors.soft =3D 512
proc.curproc.rlimit.descriptors.hard =3D 1772

I'm reading the man page for login.conf, but I don't actually have a
login.conf, so I don't know if I need to create one or something. But
then again, this looks like cpu time is unlimited, isn't it? I run
setiathome for 1 user, and there's no problem with that, it runs
forever.

Andy