Re: restoring old jemalloc patches

2019-07-11 Thread coypu
On Thu, Jul 11, 2019 at 10:30:52PM +, co...@sdf.org wrote: > hi folks, while skimming jemalloc, noticed a comment about our old code > being better. * Ideally, there would be a way to specify alignment to mmap() (like * NetBSD has), but in the absence of such a feature, we ha

restoring old jemalloc patches

2019-07-11 Thread coypu
hi folks, while skimming jemalloc, noticed a comment about our old code being better. there's a while loop trying to get aligned allocations, so it probably does matter (pages_map_slow). Any good benchmarks to use? Bring in code from old jemalloc customized for netbsd. There's a loop calling os_p

Re: malloc() exceeds RLIMIT_DATA

2019-07-11 Thread Graham Percival
On Thu, Jul 11, 2019 at 05:26:34PM +, David Holland wrote: > In practice (across arbitrary platforms) I wouldn't count on malloc > necessarily respecting any of these limits, Indeed, which was probably a large reason why this code is trying to find out how much memory it should use. In our at

Re: malloc() exceeds RLIMIT_DATA

2019-07-11 Thread David Holland
On Wed, Jul 10, 2019 at 08:40:43PM -0700, Graham Percival wrote: > > Ah, but how do you ask malloc to exceed RLIMIT_DATA? Not by passing it > > a large number, or any number, since that doesn't change the size of > > any data segment. > > Aha! I misunderstood "this limit" to mean "the number