will mmap use user cpu instead of whole sys cpu? (solaris)
Posted
by Daniel
on Stack Overflow
See other posts from Stack Overflow
or by Daniel
Published on 2009-05-08T12:55:30Z
Indexed on
2010/03/19
9:21 UTC
Read the original article
Hit count: 282
when use mmap to allocate some anonymous mem, we often set the start address as 0/null so mmap will figure out the starting address by itself. And to get the start address, it will work thought the whole virtual memory space to find a hole which could put the chuck of mem to be allocated. I guess this is calculated as user cpu instead of sys cpu. If the virtual memory is fragmented, then the time to find the starting address will use more user cpu, is my understanding correct
© Stack Overflow or respective owner