[Bug 71024] Re: ulimit / pam limits don't work

2012-10-22 Thread Samus Aran
This bug still exists today.  No way to limit RAM usage of apps, no
mention of this in the limits.conf example file which still has examples
for rss.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/71024

Title:
  ulimit / pam limits don't work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pam/+bug/71024/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 71024] Re: ulimit / pam limits don't work

2008-08-20 Thread Marcus Sundman
What kind of fix is supposed to be released in which version?
I'm running an up-to-date hardy and the limits (e.g. rss) don't work but the 
limits.conf man-page still doesn't mention this (and it even has rss as an 
example of something that supposedly should work).

-- 
ulimit / pam limits don't work
https://bugs.launchpad.net/bugs/71024
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 71024] Re: ulimit / pam limits don't work

2007-11-02 Thread Ketil Malde

This information is rather hard to come by.  Since this is fixed, should I 
instead file bugs against

 - limits.conf - lists an rss limit as the example in the man page, and does
   not warn that some or the limits just don't work.
 - zsh (and presumably, bash), which similarly pretends that limits work,
   does not report an error when setting one that don't, and while I'm at 
it, really should
   support abbreviated numbers (K,M,G suffixes) instead of just ignoring 
the suffix.
?

Anyway, I was using ulimit -d (RLIMIT_DATA), is that also supposed to
not work?

BTW, there's a patch for RLIMIT_RSS on 2.6.8 at http://lwn.net/Articles/96859/, 
presumably it wasn't applied?

-k

-- 
ulimit / pam limits don't work
https://bugs.launchpad.net/bugs/71024
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 71024] Re: ulimit / pam limits don't work

2007-11-02 Thread Kees Cook
The full thread is here: http://lkml.org/lkml/2004/8/5/227

It seems it was never finished.  Perhaps there were additional
discussions.

I think limits.conf certainly needs a patch, though I'm unsure what to
do about the shells ulimit commands.  Regardless, it seems that the
manpage should perhaps be strengthened to point out that in almost all
situations, virtual memory is the thing you want to limit.  The data
limits (which I didn't test) aren't actually effective if they do work
the way they're documented: glibc will use mmap for large heap
allocations, so data limits are just brk() limits, which isn't too
useful.

-- 
ulimit / pam limits don't work
https://bugs.launchpad.net/bugs/71024
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 71024] Re: ulimit / pam limits don't work

2007-11-01 Thread Kees Cook
Oops.  I should have read up a little more on the rlimits.  The RSS
limit is actually not valid for linux anymore:

   RLIMIT_RSS
  Specifies the limit (in pages) of  the  process’s  resident  set
  (the  number of virtual pages resident in RAM).  This limit only
  has effect in Linux 2.4.x, x  30, and there only affects  calls
  to madvise(2) specifying MADV_WILLNEED.

So, only -v is useful for limiting memory space.

** Changed in: pam (Ubuntu)
   Status: Confirmed = Fix Released

-- 
ulimit / pam limits don't work
https://bugs.launchpad.net/bugs/71024
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 71024] Re: ulimit / pam limits don't work

2007-10-30 Thread Kees Cook
I can reproduce this for -m, but not -v under Feisty or Gutsy.  The
example code above segfaulted when I used it, so I wrote a slightly
smaller version (attached).  Here is what I see:

$ ulimit -a | grep mem
max locked memory   (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
virtual memory  (kbytes, -v) unlimited
$ ./toomuch 102500
allocating...
using...
done!
$ ulimit -v 102400
$ ulimit -a | grep mem
max locked memory   (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
virtual memory  (kbytes, -v) 102400
$ ./toomuch 102500
allocating...
malloc: Cannot allocate memory

Setting -m to 5 and re-running toomuch as above, I could verify in
top that it was reporting 100M of RSS usage.


** Attachment added: toomuch.c
   http://launchpadlibrarian.net/10220730/toomuch.c

-- 
ulimit / pam limits don't work
https://bugs.launchpad.net/bugs/71024
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 71024] Re: ulimit / pam limits don't work

2007-10-30 Thread Kees Cook
** Changed in: pam (Ubuntu)
   Importance: Undecided = Medium

-- 
ulimit / pam limits don't work
https://bugs.launchpad.net/bugs/71024
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 71024] Re: ulimit / pam limits don't work

2007-10-21 Thread Marcus Sundman
If it takes a decade (and still counting) to make lsof display the offset I 
don't think pam limits will get fixed any time soon. (Yes, yes, I know they are 
different issues, I'm just grumpy and bitter.)
I constantly bump into these absurd inflexibilities in linux, which I nowadays 
consider to be only a toy kernel/OS precisely because of these shortcomings.

-- 
ulimit / pam limits don't work
https://bugs.launchpad.net/bugs/71024
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 71024] Re: ulimit / pam limits don't work

2007-10-18 Thread Ketil Malde
I see the same behavior on Gutsy beta (current revsion).  Limit/ulimit
shows limits for memory and data sizes, but my program quickly grows
beyond that.  As the current Linux kernel is utterly incapable of
dealing with swap pressure - it takes several minutes to switch terminal
and wait for ^C to go through - this is a critical issue.  I'm stunned
that this appears to have been a problem for years.

My system is x86_64 on a Core Duo laptop.

-k

-- 
ulimit / pam limits don't work
https://bugs.launchpad.net/bugs/71024
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 71024] Re: ulimit / pam limits don't work

2007-07-19 Thread Kees Cook
** Changed in: pam (Ubuntu)
   Status: Incomplete = Triaged

-- 
ulimit / pam limits don't work
https://bugs.launchpad.net/bugs/71024
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 71024] Re: ulimit / pam limits don't work

2007-07-19 Thread Kees Cook
** Changed in: pam (Ubuntu)
   Status: Triaged = Confirmed

-- 
ulimit / pam limits don't work
https://bugs.launchpad.net/bugs/71024
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 71024] Re: ulimit / pam limits don't work

2007-06-11 Thread Kees Cook
Hi!  Thanks for the test program.  Sorry for the long delay on this.  I
should have a chance to really dig into this problem later this week.

** Changed in: pam (Ubuntu)
Sourcepackagename: None = pam

** Changed in: pam (Ubuntu)
 Assignee: (unassigned) = Kees Cook

-- 
ulimit / pam limits don't work
https://bugs.launchpad.net/bugs/71024
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 71024] Re: ulimit / pam limits don't work

2007-03-01 Thread Marcus Sundman
The status has been Needs Info for quite a while now. What info is
needed? Whether this worked in dapper? If you have a dapper system
around then it's really easy to test it. I've attached an archive with
both source and binary of a small program to allocate a specified amount
of memory.

** Attachment added: Memory allocator program
   http://librarian.launchpad.net/6590899/alloc.tar.bz2

-- 
ulimit / pam limits don't work
https://launchpad.net/bugs/71024

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 71024] Re: ulimit / pam limits don't work

2006-12-04 Thread Kees Cook
Thanks for the report!

Did this work as you expected in Dapper?

** Visibility changed to: Public

** Changed in: Ubuntu
   Status: Unconfirmed = Needs Info

-- 
ulimit / pam limits don't work
https://launchpad.net/bugs/71024

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 71024] Re: ulimit / pam limits don't work

2006-12-04 Thread Marcus Sundman
Unfortunately I don't know if it worked in dapper or not. I thought it
did, but then again I thought it worked in edgy, too, before I started
debugging some memory problems. Sorry.

-- 
ulimit / pam limits don't work
https://launchpad.net/bugs/71024

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs