lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 22 Oct 2012 14:14:03 -0300 From: Ezequiel Garcia <elezegarcia@...il.com> To: Christoph Lameter <cl@...ux.com> Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org, Tim Bird <tim.bird@...sony.com>, Pekka Enberg <penberg@...nel.org>, Matt Mackall <mpm@...enic.com> Subject: Re: [PATCH 1/2] mm/slob: Mark zone page state to get slab usage at /proc/meminfo Hi Christoph, On Mon, Oct 22, 2012 at 11:41 AM, Christoph Lameter <cl@...ux.com> wrote: > On Mon, 22 Oct 2012, Ezequiel Garcia wrote: > >> On page allocations, SLAB and SLUB modify zone page state counters >> NR_SLAB_UNRECLAIMABLE or NR_SLAB_RECLAIMABLE. >> This allows to obtain slab usage information at /proc/meminfo. >> >> Without this patch, /proc/meminfo will show zero Slab usage for SLOB. >> >> Since SLOB discards SLAB_RECLAIM_ACCOUNT flag, we always use >> NR_SLAB_UNRECLAIMABLE zone state item. > ... and I have a question about this. SLUB handles large kmalloc allocations falling back to page-size allocations (kmalloc_large, etc). This path doesn't touch NR_SLAB_XXRECLAIMABLE zone item state. Without fully understanding it, I've decided to implement the same behavior for SLOB, leaving page-size allocations unaccounted on /proc/meminfo. Is this expected / wanted ? SLAB, on the other side, handles every allocation through some slab cache, so it always set the zone state. Thanks! Ezequiel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists