[RFC PATCH 5/5] mm, page_alloc: Introduce ZONELIST_FALLBACK_SAME_TYPE fallback list

2019-04-24 Thread Fan Du
type only. e.g. DRAM node 0 -> DRAM node 1 a. is already in place, previous patch implement b. providing way to satisfy memory request as best effort by default. And this patch of writing build c. to fallback to the same node type when user specify GFP_SAME_NODE_TYPE only. Signed-of

[RFC PATCH 0/5] New fallback workflow for heterogeneous memory system

2019-04-24 Thread Fan Du
e node type. This patchset is self-contained, and based on Linux 5.1-rc6. [1]: https://lkml.org/lkml/2018/12/26/138 Fan Du (5): acpi/numa: memorize NUMA node type from SRAT table mmzone: new pgdat flags for DRAM and PMEM x86,numa: update numa node type mm, page alloc: build fallback list

[RFC PATCH 4/5] mm, page alloc: build fallback list on per node type basis

2019-04-24 Thread Fan Du
->node1->node2->node3 zonelists. Signed-off-by: Fan Du --- include/linux/mmzone.h | 8 mm/page_alloc.c| 42 ++ 2 files changed, 34 insertions(+), 16 deletions(-) diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h inde

[RFC PATCH 1/5] acpi/numa: memorize NUMA node type from SRAT table

2019-04-24 Thread Fan Du
Mark NUMA node as DRAM or PMEM. This could happen in boot up state (see the e820 pmem type override patch), or on fly when bind devdax device with kmem driver. It depends on BIOS supplying PMEM NUMA proximity in SRAT table, that's current production BIOS does. Signed-off-by: Fan Du ---

[RFC PATCH 2/5] mmzone: new pgdat flags for DRAM and PMEM

2019-04-24 Thread Fan Du
One system with DRAM and PMEM, we need new flag to tag pgdat is made of DRAM or peristent memory. This patch serves as preparetion one for follow up patch. Signed-off-by: Fan Du --- include/linux/mmzone.h | 26 ++ 1 file changed, 26 insertions(+) diff --git a/include

[RFC PATCH 3/5] x86,numa: update numa node type

2019-04-24 Thread Fan Du
Give the newly created node a type per SRAT attribution. Signed-off-by: Fan Du --- arch/x86/mm/numa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c index 3c3a1f5..ff8ad63 100644 --- a/arch/x86/mm/numa.c +++ b/arch/x86/mm/numa.c @@ -590,6 +590,7

[PATCH] memory hotplug: fix comments when add section

2017-11-15 Thread Fan Du
Here, pfn_to_node should be page_to_nid. Signed-off-by: Fan Du --- mm/memory_hotplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index d4b5f29..c3c1c57 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -265,7 +265,7

[PATCH v4] Add /proc/PID/smaps support for DAX

2017-10-25 Thread Fan Du
: 0 VmFlags: rd wr sh mr mw me ms mm hg Signed-off-by: Fan Du --- v4: * Merge device DAX readings into existing smap counters for simplicity. v3: * Elaborate more about the usage suggested by Michal Hocko v2: * Using pte_devmap to check valid pfn page structure, Pointed out by Dan. thx

[PATCH 2/2] Add /proc/PID/{smaps, numa_maps} support for DAX

2017-10-24 Thread Fan Du
Signed-off-by: Fan Du --- v3: * Elaborate more about the usage suggested by Michal Hocko v2: * Using pte_devmap to check valid pfn page structure, Pointed out by Dan. thx! --- fs/proc/task_mmu.c | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/fs/proc

[PATCHv3 1/2] proc: mm: export PTE sizes directly in smaps

2017-10-24 Thread Fan Du
lliams for showing me a mirror as I complained about the bozo that introduced 'AnonHugePages'. [Fan] Rebase the original patch from Dave Hansen by fixing a couple of compile issues. Signed-off-by: Fan Du Signed-off-by: Dave Hansen --- Documentation/filesystems/proc.tx

[PATCHv2 2/2] Add /proc/PID/{smaps, numa_maps} support for DAX

2017-10-24 Thread Fan Du
where _vm_normal_page are called. Signed-off-by: Fan Du --- v2: * Using pte_devmap to check valid pfn page structure, Pointed out by Dan. thx! --- fs/proc/task_mmu.c | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/fs/proc/task_mmu.c b/fs/proc

[PATCHv2 1/2] proc: mm: export PTE sizes directly in smaps

2017-10-24 Thread Fan Du
e a mirror as I complained about the bozo that introduced 'AnonHugePages'. [Fan] Rebase the original patch from Dave Hansen by fixing a couple of compile issues. Signed-off-by: Fan Du Signed-off-by: Dave Hansen --- Documentation/filesystems/proc.txt | 6 +++ fs/proc/task_mmu.c

[PATCH] Add /proc/PID/{smaps, numa_maps} support for DAX

2017-10-24 Thread Fan Du
where _vm_normal_page are called. Signed-off-by: Fan Du --- fs/proc/task_mmu.c | 25 +++-- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 5589b4b..ba2e58c 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c

Re: [PATCH v3 net-next] xfrm: Add check to prevent un-complete key manager

2013-11-10 Thread Fan Du
On 2013年11月11日 14:39, baker.ker...@gmail.com wrote: From: Baker Zhang "acquire" and "compile_policy" callbacks are necessary for a key manager. Signed-off-by: Baker Zhang --- Thanks for all reply. V1: For current kernel source, there is no problem. In our vpn product, we need a xfrm_km in k

Re: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called

2013-09-17 Thread Fan Du
On 2013年09月16日 17:01, Thomas Gleixner wrote: On Mon, 16 Sep 2013, Fan Du wrote: On 2013年09月13日 22:32, Thomas Gleixner wrote: On Fri, 13 Sep 2013, Fan Du wrote: (2) What I have been bugging you around here for this long time is really the second problem, I'm sorry I didn'

Re: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called

2013-09-15 Thread Fan Du
Hi, Thomas On 2013年09月13日 22:32, Thomas Gleixner wrote: On Fri, 13 Sep 2013, Fan Du wrote: (2) What I have been bugging you around here for this long time is really the second problem, I'm sorry I didn't make it clearly to you and others, which is below: Why using wall clo

Re: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called

2013-09-12 Thread Fan Du
Hi Dave/Thomas On 2013年09月13日 01:32, David Miller wrote: From: Thomas Gleixner Date: Thu, 12 Sep 2013 16:43:37 +0200 (CEST) So what about going back to timer_list timers and simply utilize register_pm_notifier(), which will tell you that the system resumed? The thing to understand is that th

Re: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called

2013-08-19 Thread Fan Du
On 2013年08月18日 17:05, Thomas Gleixner wrote: On Wed, 14 Aug 2013, Fan Du wrote: From e3929d4fdfad5b40fd8cad0e217597670d1aef54 Mon Sep 17 00:00:00 2001 From: Fan Du Date: Wed, 14 Aug 2013 16:39:23 +0800 Subject: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called When

[PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called

2013-08-14 Thread Fan Du
From e3929d4fdfad5b40fd8cad0e217597670d1aef54 Mon Sep 17 00:00:00 2001 From: Fan Du Date: Wed, 14 Aug 2013 16:39:23 +0800 Subject: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called When clock_was_set is called in case of system wall time change or host resume from

Re: [BUG] ipv6, rawv6_close(): BUG: unable to handle kernel paging request

2013-07-22 Thread Fan Du
Hallo Srivatsa On 2013年07月22日 02:28, Srivatsa S. Bhat wrote: Hi, I'm seeing this on every boot. Version: Latest mainline (commit ea45ea70b) I tested with this commit using your updated IPv6 config, this incident didn't show up after several times of reboot. Could you please elaborate your

[PATCH] percpu_counter: __this_cpu_write doesn't need to be protected by spinlock

2013-06-30 Thread Fan Du
__this_cpu_write doesn't need to be protected by spinlock, AS we are doing per cpu write with preempt disabled. And another reason to remove __this_cpu_write outside of spinlock: __percpu_counter_sum is not a accurate counter. Signed-off-by: Fan Du --- lib/percpu_counter.c |2 +- 1

Re: PANIC at net/xfrm/xfrm_output.c:125 (3.9.4)

2013-06-05 Thread Fan Du
Hello Chris/Jean This issue might have already been fixed by this: https://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/net/xfrm/xfrm_output.c?id=497574c72c9922cf20c12aed15313c389f722fa0 Hope it helps. On 2013年06月06日 09:04, Jean Sacren wrote: From: Chris Boot Date: Wed, 05 Ju

Re: [PATCH] fs: Disable preempt when acquire i_size_seqcount write lock

2013-01-10 Thread Fan Du
On 2013年01月11日 06:38, Andrew Morton wrote: On Wed, 9 Jan 2013 11:34:19 +0800 Fan Du wrote: Two rt tasks bind to one CPU core. The higher priority rt task A preempts a lower priority rt task B which has already taken the write seq lock, and then the higher priority rt task A try to acquire

[PATCH] fs: Disable preempt when acquire i_size_seqcount write lock

2013-01-08 Thread Fan Du
en acquiring every i_size_seqcount *write* lock will cure the problem. Signed-off-by: Fan Du --- include/linux/fs.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/linux/fs.h b/include/linux/fs.h index db84f77..1b69e87 100644 --- a/include/linux/fs.h +++ b/

[PATCH] Disable preempt when acquire i_size_seqcount write lock

2012-12-21 Thread Fan Du
en acquiring every i_size_seqcount *write* lock will cure the problem. Signed-off-by: Fan Du --- include/linux/fs.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/linux/fs.h b/include/linux/fs.h index db84f77..1b69e87 100644 --- a/include/linux/fs.h +++ b/

Re: suspicious RCU usage in xfrm_net_init()

2012-08-16 Thread Fan Du
On 2012年08月17日 09:34, Paul Gortmaker wrote: On Thu, Aug 16, 2012 at 9:07 PM, Fan Du wrote: On 2012年08月16日 23:19, Fengguang Wu wrote: Hi Fan, On Thu, Aug 16, 2012 at 05:36:35PM +0800, Fan Du wrote: Hi, Fengguang Could you please try the below patch, see if spewing still there? thanks

Re: suspicious RCU usage in xfrm_net_init()

2012-08-16 Thread Fan Du
On 2012年08月16日 23:19, Fengguang Wu wrote: Hi Fan, On Thu, Aug 16, 2012 at 05:36:35PM +0800, Fan Du wrote: Hi, Fengguang Could you please try the below patch, see if spewing still there? thanks Yes, it worked, thank you very much! Hi, Dave Could you please pick up this patch? thanks

Re: suspicious RCU usage in xfrm_net_init()

2012-08-16 Thread Fan Du
Hi, Fengguang Could you please try the below patch, see if spewing still there? thanks From a3f86ecc3ee16ff81d49416bbf791780422988b3 Mon Sep 17 00:00:00 2001 From: Fan Du Date: Thu, 16 Aug 2012 17:31:25 +0800 Subject: [PATCH] Use rcu_dereference_bh to deference pointer protected by

Re: [PATCH] MIPS: oops when show backtrace of all active cpu

2012-08-01 Thread Fan Du
On 2012年08月02日 12:18, Kevin Cernekee wrote: On Wed, Aug 1, 2012 at 8:31 PM, Fan Du wrote: show_backtrace must have an valid task when calling unwind_stack, so fix it by checking first. [...] --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -151,6 +151,10 @@ static void

[PATCH] MIPS: oops when show backtrace of all active cpu

2012-08-01 Thread Fan Du
00c0882d 3c02811a 64423e60 10c20033 Disabling lock debugging due to kernel taint Kernel panic - not syncing: Fatal exception in interrupt Signed-off-by: Fan Du --- arch/mips/kernel/traps.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/mips/kernel/traps.c b/