On Mon, May 18, 2009 at 08:01:02PM +0800, Qihua Wu wrote: > My question is: > 1: is the time searching for a free space of 10M counted as sys cpu or user > cpu?
The time that the VM spends looking for free space would be considered SYS. > 2: What's the algorithm solaris used to find the free space. Check out as_gap_aligned(). It looks through the allocated segments, stored in an AVL tree, to see if it can find a gap with enough free space to satisfy the map request. > I am reading the book "solaris internal", but still can't find the answer > about how solaris create a new segment. seg_attach() creates new segments. -j _______________________________________________ perf-discuss mailing list perf-discuss@opensolaris.org