Re: Proposal: Restore malloc(9) interface

2024-01-09 Thread Masanobu SAITOH
Hi. On 2023/12/31 7:44, Taylor R Campbell wrote: > I propose to deprecate the kmem(9) interface and go back to the > malloc(9) interface. > > > 1. The main difference is that the malloc(9) interface enables >attribution of memory usage: how many bytes have been used for this >purpose vs

Re: Proposal: Restore malloc(9) interface

2023-12-30 Thread David Holland
On Sat, Dec 30, 2023 at 10:44:52PM +, Taylor R Campbell wrote: > Note: I am NOT proposing any substantive changes to the implementation > of the allocator -- I'm just proposing that we go back to the old > _interface_, using the new pool-cache-based _implementation_, and to > add

Proposal: Restore malloc(9) interface

2023-12-30 Thread Taylor R Campbell
I propose to deprecate the kmem(9) interface and go back to the malloc(9) interface. 1. The main difference is that the malloc(9) interface enables attribution of memory usage: how many bytes have been used for this purpose vs that purpose, partitioned by named malloc tags like M_MBUF