This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Seeking consensus on BZ 16734


On Sun, Feb 1, 2015 at 8:09 PM, H.J. Lu <hjl.tools@gmail.com> wrote:

>> Can we just do it?
>>
>
> Do we have any current performance data on this?

I am not sure what performance data you want.

The application CPU will go up (calloc has to zero out space), kernel
CPU will go down (kernel would not have to zero out the same space).

It's clear that calloc()ing 8K is much cheaper than mmap()ing,
especially when there are 100s of threads.


On Sun, Feb 1, 2015 at 8:32 PM,  <pinskia@gmail.com> wrote:

> Note I think not using mmap is even better for targets that use page sizes besides 4k. Most distros for AARCH64 are going to be using 64k pages.

Yes, that's a nice additional argument.

>  So wasting 63k worth of address space is not good, especially for ilp32.

AFAICT, the current BUFSIZ on x86_64 is 8192, so x86_64 is in fact not
wasting anything. But on a 64K page system, we surely are wasting a
lot of memory and kernel CPU cycles.

Thanks,
-- 
Paul Pluzhnikov


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]