search for: rlimit_rss

Displaying 20 results from an estimated 21 matches for "rlimit_rss".

2007 Feb 18
2
[LLVMdev] LLVM Cygwin build RLIMIT_RSS configuration problem
Hi Aaron, On Sun, 2007-02-18 at 20:43 +0000, Aaron Gray wrote: > Hi Reid, > > Cygwin 'sys/resource.h' has get/setrlimit() functions support for > RLIMIT_DATA and RLIMIT_AS but not RLIMIT_RSS. Then, please fix it to not use RLIMIT_RSS in the cygwin case. Perhaps you should just use RLIMIT_AS for cygwin. It will trigger sooner than RLIMIT_RSS but that's probably okay. Reid. > > Aaron > > ----- Original Message ----- > From: "Reid Spencer" <rspencer a...
2007 Feb 18
2
[LLVMdev] LLVM Cygwin build RLIMIT_RSS configuration problem
Hi Aaaron, On Sun, 2007-02-18 at 19:50 +0000, Aaron Gray wrote: > In order to get Cygwin working there is a need to add a > HAVE_RLIMIT_RSS and associated logic. This was just recently added. Does cygwin even have getrlimit and setrlimit? IIRC correctly, it doesn't. So, perhaps these functions need to be written differently for Cygwin. What's the equivalent win32 call? If cygwin does have getrlimit/setrlimit then we'll h...
2007 Feb 18
0
[LLVMdev] LLVM Cygwin build RLIMIT_RSS configuration problem
Hi Reid, Cygwin 'sys/resource.h' has get/setrlimit() functions support for RLIMIT_DATA and RLIMIT_AS but not RLIMIT_RSS. Aaron ----- Original Message ----- From: "Reid Spencer" <rspencer at reidspencer.com> To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> Sent: Sunday, February 18, 2007 8:32 PM Subject: Re: [LLVMdev] LLVM Cygwin build RLIMIT_RSS configuration problem &...
2007 Feb 18
0
[LLVMdev] LLVM Cygwin build RLIMIT_RSS configuration problem
Okay I have put a #ifdef HAVE_RLIMIT_RSS round the RSS code. There needs to be logic added to config system to complement this. Or shall I just use an #ifdef _CYGWIN_ ? Regarding the Bytecode writer stuff. I will try adding some inline dis-ambiguator functions. Aaron ----- Original Message ----- From: "Reid Spencer" <r...
2007 Feb 18
5
[LLVMdev] LLVM Cygwin build RLIMIT_RSS configuration problem
There seems to be a problem with the LLVM Cygwin configuration. Cygwin does not support the RLIMIT_RSS symbol. llvm[1]: Compiling Program.cpp for Debug build /usr/src/llvm/lib/System/Unix/Program.inc: In function 'void llvm::SetMemoryLimi ts(unsigned int)': /usr/src/llvm/lib/System/Unix/Program.inc:123: error: 'RLIMIT_RSS' was not decla red in this scope make[1]: *** [/usr/build/ll...
2007 Feb 18
0
[LLVMdev] LLVM Cygwin build RLIMIT_RSS configuration problem
In order to get Cygwin working there is a need to add a HAVE_RLIMIT_RSS and associated logic. Aaron ----- Original Message ----- From: Aaron Gray To: LLVM Developers Mailing List Sent: Sunday, February 18, 2007 7:00 PM Subject: [LLVMdev] LLVM Cygwin build RLIMIT_RSS configuration problem There seems to be a problem with the LLVM Cygwin configuration....
2007 Feb 18
0
[LLVMdev] LLVM Cygwin build RLIMIT_RSS configuration problem
This may well actually be a problem with the Cygwin getgid() function. Aaron ----- Original Message ----- From: Aaron Gray To: LLVM Developers Mailing List Sent: Sunday, February 18, 2007 7:00 PM Subject: [LLVMdev] LLVM Cygwin build RLIMIT_RSS configuration problem There seems to be a problem with the LLVM Cygwin configuration. Cygwin does not support the RLIMIT_RSS symbol. llvm[1]: Compiling Program.cpp for Debug build /usr/src/llvm/lib/System/Unix/Program.inc: In function 'void llvm::SetMemoryLimi ts(unsigned int)':...
2007 Feb 18
2
[LLVMdev] LLVM Cygwin build RLIMIT_RSS configuration problem
On Sun, 2007-02-18 at 21:42 +0000, Aaron Gray wrote: > Okay I have put a #ifdef HAVE_RLIMIT_RSS round the RSS code. > > There needs to be logic added to config system to complement this. > > Or shall I just use an #ifdef _CYGWIN_ ? Please just use #ifdef _CYGWIN_ > > Regarding the Bytecode writer stuff. I will try adding some inline > dis-ambiguator functions. Yeah...
2007 Feb 18
0
[LLVMdev] LLVM Cygwin build RLIMIT_RSS configuration problem
> Please just use #ifdef _CYGWIN_ Okay >> Regarding the Bytecode writer stuff. I will try adding some inline >> dis-ambiguator functions. > > Yeah, I can't help you solve this problem because I don't have your > environment or compiler. However, this really smells like a compiler or > stdint.h bug to me. This code compiles fine on many unix platforms and
2007 Feb 19
0
[LLVMdev] LLVM Cygwin build RLIMIT_RSS configuration problem
Hello, Reid. > to be written differently for Cygwin. What's the equivalent win32 call? I can be wrong, but there is no direct equivalent in WinAPI. AFAIK, there are only few possibilities to set such limits on "pure" win32 subsystem. -- With best regards, Anton Korobeynikov. Faculty of Mathematics & Mechanics, Saint Petersburg State University.
2007 Jul 03
0
[LLVMdev] Solaris 9 compilation
...figuring. I had to suppress the solaris tools by: env AR=/opt/gnu/bin/ar NM=/opt/gnu/bin/nm RANLIB=/opt/gnu/bin/ranlib STRIP=/opt/gnu/bin/strip ../llvm/configure --enable-optimized 00) I had to include the libtool-related .so libraries by setting LD_LIBRARY_PATH appropriately 1) setrlimit issue: RLIMIT_RSS is not defined. This seems to be conditionalized for cygwin, a better test appears to be an "#ifdef RLIMIT_RSS" See patches below. 2) round() not defined: http://forum.java.sun.com/thread.jspa?messageID=9567848&tstart=0#9567848 seems to describe this problem. The solution is simple....
2007 Jun 04
1
[LLVMdev] Patch to build on NetBSD
...file: /var/cvs/llvm/llvm/lib/System/Unix/Program.inc,v retrieving revision 1.24 diff -u -p -r1.24 Program.inc --- Program.inc 23 Apr 2007 07:22:51 -0000 1.24 +++ Program.inc 4 Jun 2007 13:05:22 -0000 @@ -125,11 +125,13 @@ static void SetMemoryLimits (unsigned si r.rlim_cur = limit; setrlimit (RLIMIT_RSS, &r); #endif +#ifdef RLIMIT_AS // e.g. NetBSD doesn't have it. // Virtual memory. getrlimit (RLIMIT_AS, &r); r.rlim_cur = limit; setrlimit (RLIMIT_AS, &r); #endif +#endif } int
2001 Feb 08
0
openssh2.3.0p1 and /etc/limits
...address space (KB) + * [Cc]: c = RLIMIT_CORE max core file size (KB) + * [Dd]: d = RLIMIT_DATA max data size (KB) + * [Ff]: f = RLIMIT_FSIZE Maximum filesize (KB) + * [Mm]: m = RLIMIT_MEMLOCK max locked-in-memory address space (KB) + * [Nn]: n = RLIMIT_NOFILE max number of open files + * [Rr]: r = RLIMIT_RSS max resident set size (KB) + * [Ss]: s = RLIMIT_STACK max stack size (KB) + * [Tt]: t = RLIMIT_CPU max CPU time (MIN) + * [Uu]: u = RLIMIT_NPROC max number of processes + * [Ll]: l = max number of logins for this user + * [Pp]: p = process priority -20..20 (negative = high priority) + * + * Retur...
2007 Feb 28
1
[LLVMdev] Building LLVM and LLVM-GCC4 on Cygwin
...disambiguation functions to LLVM, these would be inline and transparent with no overhead. And 'lib/System/Unix/Program.inc' has to have three lines #def'ed out on the Cygwin build. http://www.aarongray.org/LLVM/Patches/Program.inc.diff This is because Cygwin does not support RLIMIT_RSS. There are 'make check' results here :- http://www.aarongray.org/LLVM/check.txt The summary :- === Summary === # of expected passes 1620 # of unexpected failures 136 # of unexpected successes 1 # of expected failures 19 Pritty rag tailed quit...
2002 Jun 26
0
[Bug 301] New: In openssh 3.3 and 3.4 pam session seems be called from non-root
...x=2147483647}) = 0 11860 setrlimit(RLIMIT_DATA, {rlim_cur=2147483647, rlim_max=2147483647}) = 0 11860 setrlimit(RLIMIT_STACK, {rlim_cur=2147483647, rlim_max=2147483647}) = 0 11860 setrlimit(RLIMIT_CORE, {rlim_cur=50000*1024, rlim_max=50000*1024}) = -1 EPERM (Operation not permitted) 11860 setrlimit(RLIMIT_RSS, {rlim_cur=2147483647, rlim_max=2147483647}) = 0 11860 setrlimit(RLIMIT_NPROC, {rlim_cur=257, rlim_max=257}) = 0 11860 setrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 11860 setrlimit(RLIMIT_MEMLOCK, {rlim_cur=2147483647, rlim_max=2147483647}) = 0 11860 setrlimit(RLIMIT_AS, {rlim_cur=21...
2002 May 14
1
AIX capabilities not set
Hi, we're in the process of setting up large-page support on IBM regattas, but for large-page support the users have to have a set of extra capabilities (CAP_BYPASS_RAC_VMM,CAP_PROPAGATE). This are configured on a per user basis by listing which capability each user have in /etc/security/user. Unfortunately they don't get set when the users log in via OpenSSH (3.1p1). Does anybody know
2007 Aug 16
0
[PATCH/RFC 2/4]Introduce a new field "guest" in task_struct
...cgtime =3D cputime_zero; + utime =3D stime =3D gtime =3D 0; = rcu_read_lock(); if (lock_task_sighand(task, &flags)) { @@ -406,6 +413,7 @@ cmaj_flt =3D sig->cmaj_flt; cutime =3D sig->cutime; cstime =3D sig->cstime; + cgtime =3D sig->cgtime; rsslim =3D sig->rlim[RLIMIT_RSS].rlim_cur; = /* add up live thread stats at the group level */ @@ -416,6 +424,7 @@ maj_flt +=3D t->maj_flt; utime +=3D task_utime(t); stime +=3D task_stime(t); + gtime +=3D task_gtime(t); t =3D next_thread(t); } while (t !=3D task); = @@ -423,6 +432,7 @@ maj...
2007 Aug 16
0
[PATCH/RFC 2/4]Introduce a new field "guest" in task_struct
...cgtime =3D cputime_zero; + utime =3D stime =3D gtime =3D 0; = rcu_read_lock(); if (lock_task_sighand(task, &flags)) { @@ -406,6 +413,7 @@ cmaj_flt =3D sig->cmaj_flt; cutime =3D sig->cutime; cstime =3D sig->cstime; + cgtime =3D sig->cgtime; rsslim =3D sig->rlim[RLIMIT_RSS].rlim_cur; = /* add up live thread stats at the group level */ @@ -416,6 +424,7 @@ maj_flt +=3D t->maj_flt; utime +=3D task_utime(t); stime +=3D task_stime(t); + gtime +=3D task_gtime(t); t =3D next_thread(t); } while (t !=3D task); = @@ -423,6 +432,7 @@ maj...
2000 Jun 13
2
2.2.1p1 / AIX 4.2.1.0.06 login nits
Hi. New (2.1.1p1) login code is nicer on AIX (4.2.1.0.06). Thanks. A couple of issues, though, which I haven't really dug into yet. I'm wondering if anyone else has seen them? If not, I'll investigate & report. 1. If I set "UseLogin" to "yes", everything seems fine except that the authentication agent forwarding doesn't work. The "SSH"
2007 Aug 20
3
[PATCH 2/4] Introduce a new fields "gtime" and "cgtime" in task_struct and signal_struct
...utime =3D stime =3D 0; = rcu_read_lock(); @@ -406,6 +423,9 @@ static int do_task_stat(struct task_stru cmaj_flt =3D sig->cmaj_flt; cutime =3D sig->cutime; cstime =3D sig->cstime; +#ifdef CONFIG_GUEST_ACCOUNTING + cgtime =3D sig->cgtime; +#endif rsslim =3D sig->rlim[RLIMIT_RSS].rlim_cur; = /* add up live thread stats at the group level */ @@ -416,6 +436,9 @@ static int do_task_stat(struct task_stru maj_flt +=3D t->maj_flt; utime +=3D task_utime(t); stime +=3D task_stime(t); +#ifdef CONFIG_GUEST_ACCOUNTING + gtime +=3D task_gtime(t); +#endif...