how to restrict memory usage by a process

we are running red hat ES4 and i would like to know if there is anyway of restrcting the maximum amount of memory that a process can get? I have a single preocess that is taking >13GB.

Thanks,
Frank

ulimit is a bash builtin command. You can limit resource use with that; change the shell script that runs the process. Add ulimit -H (hard) with a -d [size] if the data segment needs to be limited, or overall working set size with -m [size]. [size] is a number of 1024 byte chunks.

I need to have this be a system wide limit, the users are running the ones running the process, I dont really want to modify their scripts.

Put it in /etc/profile or whatever you have setup to run during login.

hey Jim, I seem to fail to run cpio even for root. I get the message ulimit reached. I have tried settin it to no limit but no joy. want to backup to tape eithr from my application or direct from unix but hey....any tips?