During the life of a process, lots of segments might be created and
destroyed, so there might be many hole inside the address space, suppose we
need to allocate a segment (use mmap to create a anonymous meomry) whose
size is 10M, but the first 1000 holes in address space solaris could find is
only 1M.

My question is:
1: is the time searching for a free space of 10M counted as sys cpu or user
cpu?
2: What's the algorithm solaris used to find the free space.

We are using hoad as memory allocator, if using pmap to show the segment,
there are 100K+ segments inside the space address, so I am wondering whether
we would use lots of sys cpu to manage these huge number of segment.

I am reading the book "solaris internal", but still can't find the answer
about how solaris create a new segment.
_______________________________________________
perf-discuss mailing list
perf-discuss@opensolaris.org

Reply via email to