Bug 57931

Summary: No vmemoryuse limit
Product: [Retired] Red Hat Linux Reporter: Bogdan Costescu <bogdan.costescu>
Component: tcshAssignee: Miloslav Trmač <mitr>
Status: CLOSED CURRENTRELEASE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-08-18 14:44:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bogdan Costescu 2002-01-02 15:00:20 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4)
Gecko/20011019 Netscape6/6.2

Description of problem:
tcsh lacks the "vmemoryuse" limit to limit virtual memory use. The desired
result can be obtained by setting "as" limit in /etc/security/limits.conf;
however, this is not possible f.e. for batch systems where the virtual
memory limit has to be set at run-time for each process by the parent tcsh.
Possible cause: RLIMIT_VMEM is not defined in /usr/include/bits/resource.h.

Possible fix: in tcsh-6.10.00/sh.func.c, RLIMIT_VMEM can be #define-d as
RLIMIT_AS (which is defined in /usr/include/bits/resource.h). It seems like
on some systems RLIMIT_AS is #define-d as RLIMIT_VMEM...


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. limit



Actual Results:  cputime         unlimited
filesize        unlimited
datasize        unlimited
stacksize       8192 kbytes
coredumpsize    unlimited
memoryuse       unlimited
descriptors     1024 
memorylocked    unlimited
maxproc         511 
openfiles       1024

Expected Results:  cputime         unlimited
filesize        unlimited
datasize        unlimited
stacksize       8192 kbytes
coredumpsize    unlimited
memoryuse       unlimited
vmemoryuse      unlimited    <<<<<
descriptors     1024 
memorylocked    unlimited
maxproc         511 
openfiles       1024 


Additional info:

tcsh-6.10-6

This is not only a problem of printing the limits with tcsh. The limit
cannot be enforced, so that processes can allocate any amount of memory
they ask for (unless limited in /etc/security/limits.conf). For comparison,
using bash-2.05-8, ulimit -v does have the desired effect.

Comment 1 Miloslav Trmač 2004-08-18 14:44:31 UTC
vmemoryuse is supported in tcsh-6.12-8.