Increasing per-process memory limits?

2003-10-15 Thread njc
Hello,
I'm currently using Zope's Plone application which relies heavily on 
python. When uploading large files (65 megs, possibly higher), the 
python process is bombing out with a 'memory exceeded' error. I'm using 
4.8-STABLE . I've been told that if I increase the amount of available 
memory to the python process that I can resolve this issue. I've 
attempted increasing the max users variable in the kernel to 0, hoping 
it might auto-tune, but that doesn't seem to be working. Am I tweaking 
the wrong area? Where should I be looking?



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Increasing per-process memory limits?

2003-10-15 Thread Giorgos Keramidas
On 2003-10-14 23:51, njc [EMAIL PROTECTED] wrote:
 Hello,
 I'm currently using Zope's Plone application which relies heavily on
 python. When uploading large files (65 megs, possibly higher), the
 python process is bombing out with a 'memory exceeded' error. I'm using
 4.8-STABLE . I've been told that if I increase the amount of available
 memory to the python process that I can resolve this issue. I've
 attempted increasing the max users variable in the kernel to 0, hoping
 it might auto-tune, but that doesn't seem to be working. Am I tweaking
 the wrong area? Where should I be looking?

Try reading the manual page of /etc/login.conf:

man login.conf

Another way of enforcing/changing the limits that a user process has is
through the 'limit' built-in command of tcsh or the /usr/bin/limits
system tool.  More information about these in the tcsh(1) and limits(1)
manpages.

- Giorgos

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Increasing per-process memory limits?

2003-10-15 Thread Julien Gabel
 Try reading the manual page of /etc/login.conf:

   man login.conf

 Another way of enforcing/changing the limits that a user process has is
 through the 'limit' built-in command of tcsh or the /usr/bin/limits
 system tool.  More information about these in the tcsh(1) and limits(1)
 manpages.

And the corresponding built-in in [k]sh(1) compatible shell is ulimit(1).

--
-jg.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Increasing per-process memory limits?

2003-10-15 Thread David Landgren
Giorgos Keramidas wrote:

On 2003-10-14 23:51, njc [EMAIL PROTECTED] wrote:

Hello,
I'm currently using Zope's Plone application which relies heavily on
python. When uploading large files (65 megs, possibly higher), the
python process is bombing out with a 'memory exceeded' error. I'm using
4.8-STABLE . I've been told that if I increase the amount of available
memory to the python process that I can resolve this issue. I've
attempted increasing the max users variable in the kernel to 0, hoping
it might auto-tune, but that doesn't seem to be working. Am I tweaking
the wrong area? Where should I be looking?


Try reading the manual page of /etc/login.conf:

	man login.conf

Another way of enforcing/changing the limits that a user process has is
through the 'limit' built-in command of tcsh or the /usr/bin/limits
system tool.  More information about these in the tcsh(1) and limits(1)
manpages.
Note that the GENERIC kernel has a hard limit of 256MB, defined by 
MAXDSIZ (and MAXSSIZ too) in the configuration file. For modern 
machines with a large amount of RAM this may be inadequate. You will 
have to recompile the kernel to run larger processes.

David

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Increasing per-process memory limits?

2003-10-15 Thread njc


Giorgos Keramidas wrote:

Try reading the manual page of /etc/login.conf:

	man login.conf

Another way of enforcing/changing the limits that a user process has is
through the 'limit' built-in command of tcsh or the /usr/bin/limits
system tool.  More information about these in the tcsh(1) and limits(1)
manpages.
- Giorgos

I'm sorry, I forgot to mention that I looked into this as well - the 
python process runs as root, which appears to have unlimited resource 
usage... that's kind of what confused me about this issue in the first 
place. Thank you for your response, though.

-njc

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]