Re: RLIMIT_DATA and malloc(3) use of mmap(2)

2012-01-16 Thread Maxim Konovalov
Hi Kostik, On Fri, 9 Dec 2011, 13:56+0400, Maxim Konovalov wrote: > On Fri, 25 Nov 2011, 22:21+0400, Maxim Konovalov wrote: > > > [...] > > > Fixed patch is available at > > > http://people.freebsd.org/~kib/misc/map_datalimit.2.patch > > > > > Works as expected without any glitches. > > > I unders

Re: RLIMIT_DATA and malloc(3) use of mmap(2)

2011-12-09 Thread Maxim Konovalov
Hi Kostik, I understand that you are busy with the release. But is there a plan to commit this code somewhere in the near future? On Fri, 25 Nov 2011, 22:21+0400, Maxim Konovalov wrote: > [...] > > Fixed patch is available at > > http://people.freebsd.org/~kib/misc/map_datalimit.2.patch > > > W

Re: RLIMIT_DATA and malloc(3) use of mmap(2)

2011-11-25 Thread Maxim Konovalov
[...] > Fixed patch is available at > http://people.freebsd.org/~kib/misc/map_datalimit.2.patch > Works as expected without any glitches. -- Maxim Konovalov ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-c

Re: RLIMIT_DATA and malloc(3) use of mmap(2)

2011-11-25 Thread Maxim Konovalov
[...] > Overall, the test is quite curious but absolutely unrealistic. If there is a realistic one I'm open to use it :-) > Fixed patch is available at > http://people.freebsd.org/~kib/misc/map_datalimit.2.patch > OK, will test and report the results shortly. -- Maxim Konovalov

Re: RLIMIT_DATA and malloc(3) use of mmap(2)

2011-11-24 Thread Kostik Belousov
On Thu, Nov 24, 2011 at 09:38:19PM +0400, Maxim Konovalov wrote: > Hi Kostik, > > On Wed, 23 Nov 2011, 11:22+0400, Maxim Konovalov wrote: > > > [...] > > > Anyway, the patch needs testers before I will push it forward. > > > > > [igor's email was corrected] > > > > We will test it in out environm

Re: RLIMIT_DATA and malloc(3) use of mmap(2)

2011-11-24 Thread Maxim Konovalov
Hi Kostik, On Wed, 23 Nov 2011, 11:22+0400, Maxim Konovalov wrote: > [...] > > Anyway, the patch needs testers before I will push it forward. > > > [igor's email was corrected] > > We will test it in out environment and let you know. > It seems I don't understand how it works. Here is a test pro

Re: RLIMIT_DATA and malloc(3) use of mmap(2)

2011-11-23 Thread Maxim Konovalov
[...] > Anyway, the patch needs testers before I will push it forward. > [igor's email was corrected] We will test it in out environment and let you know. Thanks for the patch! -- Maxim Konovalov ___ freebsd-current@freebsd.org mailing list http://lis

Re: RLIMIT_DATA and malloc(3) use of mmap(2)

2011-11-22 Thread Maxim Dounin
Hello! On Tue, Nov 22, 2011 at 02:44:10PM +0200, Kostik Belousov wrote: > I was reminded about the patch I wrote for Igor Sysoev some time ago. > The issue the patch tries to handle is that jemalloc uses mmap() instead > of sbrk() for pages allocation, and thus RLIMIT_DATA limit is no longer > ef

Re: RLIMIT_DATA and malloc(3) use of mmap(2)

2011-11-22 Thread Kostik Belousov
On Tue, Nov 22, 2011 at 07:43:57PM +0400, Maxim Dounin wrote: > Hello! > > On Tue, Nov 22, 2011 at 02:44:10PM +0200, Kostik Belousov wrote: > > > I was reminded about the patch I wrote for Igor Sysoev some time ago. > > The issue the patch tries to handle is that jemalloc uses mmap() instead > >

RLIMIT_DATA and malloc(3) use of mmap(2)

2011-11-22 Thread Kostik Belousov
I was reminded about the patch I wrote for Igor Sysoev some time ago. The issue the patch tries to handle is that jemalloc uses mmap() instead of sbrk() for pages allocation, and thus RLIMIT_DATA limit is no longer effective to put the bounds on the process heap. Since reverting to sbrk for such pu