differences between M_CACHE, M_DEVBUF, M_TEMP
Daniel O'Connor
doconnor at gsoft.com.au
Wed May 10 00:01:50 UTC 2006
On Tuesday 09 May 2006 08:29, Bharma Ji wrote:
> I am trying to understand the difference in these three different memories.
> Code comments in kern_malloc.c says that M_DEVBUF should be used for device
> driver. I didn't however see any major difference between the three
> memories. Can a device theoretically take up memory from M_TEMP (or
> M_CACHE) segment? Similary can device drivers using M_DEVBUF also allocate
> from M_CACHE / M_TEMP if needed.
The M_* stuff is just a categorisation for memory allocations. Run vmstat -m
to see what I mean.
AFAIK the actual take has no bearing on the performance of the allocation
itself.
--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20060510/69eb5c75/attachment.pgp
More information about the freebsd-hackers
mailing list