Skip to contentSkip to conversation

+ mm-zswap-numa-aware-allocation-for-zswap_dstmem.patch added to -mm tree

PATCH [email protected] 1 participant 1 message May 27, 2014

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + mm-zswap-numa-aware-allocation-for-zswap_dstmem.patch added to -mm tree
To: [email protected]
From: [email protected]
Date: Tue, 27 May 2014 13:50:29 -0700

The patch titled
Subject: mm/zswap: NUMA aware allocation for zswap_dstmem
has been added to the -mm tree. Its filename is
mm-zswap-numa-aware-allocation-for-zswap_dstmem.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-zswap-numa-aware-allocation-for-zswap_dstmem.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-zswap-numa-aware-allocation-for-zswap_dstmem.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Eric Dumazet <[email protected]>
Subject: mm/zswap: NUMA aware allocation for zswap_dstmem

zswap_dstmem is a percpu block of memory, which should be allocated using kmalloc_node(), to get better NUMA locality.

Without it, all the blocks are allocated from a single node.

Seth Jennings <[email protected]>
David Rientjes <[email protected]>

---

 mm/zswap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/zswap.c renamed from mm/zswap.c~mm-zswap-numa-aware-allocation-for-zswap_dstmem +1 -1
diff -puN mm/zswap.c~mm-zswap-numa-aware-allocation-for-zswap_dstmem mm/zswap.c
@@ -347,7 +347,7 @@ static int __zswap_cpu_notifier(unsigned
 			return NOTIFY_BAD;
 		}
 		*per_cpu_ptr(zswap_comp_pcpu_tfms, cpu) = tfm;
-		dst = kmalloc(PAGE_SIZE * 2, GFP_KERNEL);
+		dst = kmalloc_node(PAGE_SIZE * 2, GFP_KERNEL, cpu_to_node(cpu));
 		if (!dst) {
 			pr_err("can't allocate compressor buffer\n");
 			crypto_free_comp(tfm);

_

Patches currently in -mm which might be from [email protected] are

mm-zswap-numa-aware-allocation-for-zswap_dstmem.patch linux-next.patch