Thread (4 messages) 4 messages, 4 authors, 2012-01-09

Re: Minor page faults from pthread_create()

From: Remy Bohmer <hidden>
Date: 2012-01-07 18:28:46

Hi,

2012/1/6 Adrian Knoth [off-list ref]:
I was wondering why pthread_create() should cause minor page faults when
there is a pre-allocated pre-faulted 100MB memory pool.
That pre-allocated block of memory is used by Glibc for its malloc routines.
While doing a pthread_create() you go to the kernel. Inside the kernel
many functions allocate memory as well. This is outside the control of
the C-library.
Probably some function inside the kernel allocates this memory and
uses it, resulting in these page-faults.
One example is allocating memory for the stack.

Kind regards,

Remy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help