Notice that the real and system time were dramatically reduced by using a larger page size. Additional testing shows system time being cut in half and large reductions in reported user time as well.

'vmstat 10' while the application is running shows the huge effect of 4K pagesize vs 2MB pagesize. With 4K pagesize, the 'pi' value reaches 180561 but with 2MB pagesize, the 'pi' value reaches only 1207:

 kthr      memory            page            disk          faults      cpu
 r b w   swap  free  re  mf pi po fr de sr s1 s2 s3 s4   in   sy   cs us sy id
 0 0 0 127507048 110430156 0 180561 0 0 0 0 0 0 0 0  0  996 1120  460  2  1 97

 kthr      memory            page            disk          faults      cpu
 r b w   swap  free  re  mf pi po fr de sr s1 s2 s3 s4   in   sy   cs us sy id
 0 0 0 113485140 96406824 284 1207 0 0 0 0 0 0 0  0  0  867 7630  497  2  1 97

It seems that we need a "slab allocator" or an adaptive allocation policy for the process VM system.

Bob
--
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to