Re: kmem pool for half pagesize is very wasteful

2021-02-23 Thread Greg Troxel
Chuck Silvers writes: > in the longer term, I think it would be good to use even larger pool pages > for large pool objects on systems that have relatively large amount of memory. > even with your patch, a 1k pool object on a system with a 4k VM page size > still has 33% overhead for the

Re: kmem pool for half pagesize is very wasteful

2021-02-23 Thread Chuck Silvers
On Tue, Feb 23, 2021 at 06:25:50PM +1100, matthew green wrote: > hi folks. > > > while we were debugging some memory starvation issues i noticed that > the "kmem-02048" pool only has 1 item per page on a system with 4KiB > pages, same similarly "kmem-04096" on 8KiB page systems. i assume > this

Re: kmem pool for half pagesize is very wasteful

2021-02-23 Thread Michael van Elst
m...@eterna.com.au (matthew green) writes: >while we were debugging some memory starvation issues i noticed that >the "kmem-02048" pool only has 1 item per page on a system with 4KiB >pages, same similarly "kmem-04096" on 8KiB page systems. i assume >this also occurs on 16KiB page systems for

kmem pool for half pagesize is very wasteful

2021-02-22 Thread matthew green
hi folks. while we were debugging some memory starvation issues i noticed that the "kmem-02048" pool only has 1 item per page on a system with 4KiB pages, same similarly "kmem-04096" on 8KiB page systems. i assume this also occurs on 16KiB page systems for the "kmem-08192" pool. this happens