From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <200410052211.i95MBU630399@unix-os.sc.intel.com> From: "Chen, Kenneth W" Subject: RE: slab fragmentation ? Date: Tue, 5 Oct 2004 15:11:38 -0700 In-Reply-To: <1097010817.12861.164.camel@dyn318077bld.beaverton.ibm.com> Sender: owner-linux-mm@kvack.org Return-Path: To: 'Badari Pulavarty' , Manfred Spraul Cc: Andrew Morton , linux-mm@kvack.org List-ID: Badari Pulavarty wrote on Tuesday, October 05, 2004 2:14 PM > > >>The fix would be simple: kmem_cache_alloc_node must walk through the > > >>list of partial slabs and check if it finds a slab from the correct > > >>node. If it does, then just use that slab instead of allocating a new > > >>one. > > I don't see how to find out which slab came from which node. I don't > think we save "nodeid" anywhere in the slab. Do we ? If you have a pointer to the slab page, then you can traverse through pgdat of each zone: page_zone(page)->zone_pgdat->node_id. - Ken -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: aart@kvack.org