On 10/21/10 21:11, Tom Chen wrote: > Hello, > > I am testing a GLDv3 driver running on Solaris10. The driver's tx performance > needs more improvement. > After started netperf transmission test for a few seconds, I run lockstat to > see what it is busy with. Surprisingly, I see a lot of page_hashin / > page_hashout, kmem_slab_alloc/kmem_slab_free functions get called and they > wasted a lot of time. Then I run a simple dtrace script to see who called > these functions. It looks like the caller is from the OS, not the driver. I > also tested Intel 10G card but did not see any of these functions on top of > the lockstat result. > I am wondering why OS spends so much time to do memory allocation & > de-allocation for this driver?
Going from kmem to vmem means the OS needs more memory than it currently has readily available. Have you tried running with the kmem_debug flags set and checking ::findleaks in mdb? -- James Carlson 42.703N 71.076W <carls...@workingcode.com> _______________________________________________ networking-discuss mailing list networking-discuss@opensolaris.org