Re: [PATCH] Fake NUMA emulation for PowerPC

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Olof Johansson <olof@...>
Cc: <linuxppc-dev@...>, LKML <linux-kernel@...>
Date: Friday, December 7, 2007 - 5:35 pm

Olof Johansson wrote:

In my case, I use it to test parts of my memory controller patches on an
emulated NUMA machine. I plan to use it to test out page migration
across nodes.


Yes, good catch!


Yes, you are right. I merely followed the strstr convention already
present, which as you righly point out is wrong. I suspect I need to do
something like

p = strstr(p, "fake=")
if (p)
	cmdline = p + 5;

This would still allow us to do things like

numa=foo,fake=bar but the memparse() utility would fail at fake=bar
								^^^

or even

numa=debug,fake=1G

I suspect that this should be good enough for a command line option.



-- 
	Thanks,
	Balbir Singh
	Linux Technology Center
	IBM, ISTL
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Fake NUMA emulation for PowerPC, Balbir Singh, (Fri Dec 7, 5:14 pm)
Re: [PATCH] Fake NUMA emulation for PowerPC, Nathan Lynch, (Fri Dec 7, 6:11 pm)
Re: [PATCH] Fake NUMA emulation for PowerPC, Balbir Singh, (Fri Dec 7, 6:26 pm)
Re: [PATCH] Fake NUMA emulation for PowerPC, David Rientjes, (Fri Dec 7, 7:11 pm)
Re: [PATCH] Fake NUMA emulation for PowerPC, Balbir Singh, (Sat Dec 8, 12:32 am)
Re: [PATCH] Fake NUMA emulation for PowerPC, David Rientjes, (Sat Dec 8, 12:45 am)
Re: [PATCH] Fake NUMA emulation for PowerPC, Arnd Bergmann, (Fri Dec 7, 6:01 pm)
Re: [PATCH] Fake NUMA emulation for PowerPC, Balbir Singh, (Fri Dec 7, 6:22 pm)
Re: [PATCH] Fake NUMA emulation for PowerPC, Geert Uytterhoeven, (Fri Dec 7, 5:30 pm)
Re: [PATCH] Fake NUMA emulation for PowerPC, Dave Quigley, (Fri Dec 7, 5:33 pm)
Re: [PATCH] Fake NUMA emulation for PowerPC, Balbir Singh, (Fri Dec 7, 5:35 pm)
Re: [PATCH] Fake NUMA emulation for PowerPC, Balbir Singh, (Fri Dec 7, 5:43 pm)
Re: [PATCH] Fake NUMA emulation for PowerPC, Arnd Bergmann, (Fri Dec 7, 5:58 pm)
Re: [PATCH] Fake NUMA emulation for PowerPC, Balbir Singh, (Fri Dec 7, 6:03 pm)
Re: [PATCH] Fake NUMA emulation for PowerPC, Olof Johansson, (Fri Dec 7, 5:28 pm)
Re: [PATCH] Fake NUMA emulation for PowerPC, David Rientjes, (Fri Dec 7, 7:06 pm)
Re: [PATCH] Fake NUMA emulation for PowerPC, Balbir Singh, (Fri Dec 7, 5:35 pm)
Re: [PATCH] Fake NUMA emulation for PowerPC, Kumar Gala, (Fri Dec 7, 5:55 pm)
Re: [PATCH] Fake NUMA emulation for PowerPC, Balbir Singh, (Fri Dec 7, 6:12 pm)
Re: [PATCH] Fake NUMA emulation for PowerPC, David Rientjes, (Fri Dec 7, 7:10 pm)
Re: [PATCH] Fake NUMA emulation for PowerPC, Balbir Singh, (Sat Dec 8, 12:22 am)
Re: [PATCH] Fake NUMA emulation for PowerPC, Pavel Machek, (Sun Dec 9, 9:16 am)
Re: [PATCH] Fake NUMA emulation for PowerPC, Balbir Singh, (Sun Dec 9, 9:20 am)
Re: [PATCH] Fake NUMA emulation for PowerPC, Kumar Gala, (Fri Dec 7, 6:15 pm)
Re: [PATCH] Fake NUMA emulation for PowerPC, Balbir Singh, (Fri Dec 7, 6:18 pm)