* [uml-devel] Problem running SMP-UML (both skas & tt)
@ 2005-06-06 13:26 Sriram Raghunathan
2005-06-06 16:13 ` Blaisorblade
0 siblings, 1 reply; 2+ messages in thread
From: Sriram Raghunathan @ 2005-06-06 13:26 UTC (permalink / raw)
To: user-mode-linux-devel; +Cc: user-mode-linux-user
Hi,
We're having problems running UML with SMP enabled...(ie ncpus>1) on Suse
Linux 9.0 with
2.6.5-7.97-smp (host kernel)
We've built UML with linux-2.6.11.7 & have been unsuccessful running linux
in either skas nor tt modes
for SMP. Of-course, we have absolutely no problems when we're in single cpu
mode with npcus=1.
Here I would need to mention that when we enable debug, we get the
following error message during
linking stage:
kernel/profile.c:387: undefined reference to `profile_pc".
We went ahead & commented this out to get the build to work..would
appreciate if somebody could point
us to a patch. However this is not the crux of the problem we're facing.
Here's what happens when we try to start up UML in tt mode for
multi-cpu's...
./linux ubd0=/cics/SLES9/root.img ubd1=/cics/SLES9/swap.img umid=first
con=pty con0=fd:0,
fd:1 con1=xterm ncpus=4 mode=tt
Checking PROT_EXEC mmap in /tmp...OK
tracing thread pid = 27309
And the process just comes out...
Pl note that the linux process that we run above is built with kernel debug
enabled. (We've commented out
the reference to profile_pc)
/*
if (!user_mode(regs) && cpu_isset(smp_processor_id(),
prof_cpu_mask))
profile_hit(type, (void *)profile_pc(regs));
*/
We did run with the debug option as well but did not get much out of the
gdb session..
Of-course...we would love to get the skas mode to work with SMP...but I've
read through in
many a discussion that we have issues with this. Is there a patch in place
that we could
use? Pl note that we did try with 2.6.9 with the bs7 patch but this did not
work.
We hit upon
panic("skas mode doesn't support SMP");
Here's what we see currently for skas...in linux-2.6.11.7.
umluser@lincoln:~/linux_src/src> ./linux ubd0=/cics/SLES9/root.img
ubd1=/cics/SLES9/swap.img umid=first con=pty con0=fd:0,fd:1 con1=xterm
ncpus=4
Checking for /proc/mm...found
Checking for the skas3 patch in the host...found
Checking PROT_EXEC mmap in /tmp...OK
And the process comes out.
Would appreciate if we could get any help to sort this out. If these are
know issues, perhaps a link to kernel version
which does not have these problems(preferably skas) would be helpful.
Thanks,
Sriram
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [uml-devel] Problem running SMP-UML (both skas & tt)
2005-06-06 13:26 [uml-devel] Problem running SMP-UML (both skas & tt) Sriram Raghunathan
@ 2005-06-06 16:13 ` Blaisorblade
0 siblings, 0 replies; 2+ messages in thread
From: Blaisorblade @ 2005-06-06 16:13 UTC (permalink / raw)
To: user-mode-linux-devel; +Cc: Sriram Raghunathan, user-mode-linux-user
[-- Attachment #1: Type: text/plain, Size: 1280 bytes --]
On Monday 06 June 2005 15:26, Sriram Raghunathan wrote:
> Hi,
> We're having problems running UML with SMP enabled...(ie ncpus>1) on Suse
> Linux 9.0 with
> 2.6.5-7.97-smp (host kernel)
> We've built UML with linux-2.6.11.7 & have been unsuccessful running linux
> in either skas nor tt modes
> for SMP.
Well, for SKAS mode there is no support yet... for TT mode the support used to
work until recently, but is not very used because SKAS mode is usually
faster, so it's less debugged than it should be...
> Of-course, we have absolutely no problems when we're in single cpu
> mode with npcus=1.
> Here I would need to mention that when we enable debug, we get the
> following error message during
> linking stage:
> kernel/profile.c:387: undefined reference to `profile_pc".
> We went ahead & commented this out to get the build to work..would
> appreciate if somebody could point
> us to a patch. However this is not the crux of the problem we're facing.
The fixlet for this is attached... Sadly I cannot help for now on the bigger
picture, but I'll have a look on it.
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
[-- Attachment #2: uml-add-profile-pc-i386.patch --]
[-- Type: text/x-diff, Size: 659 bytes --]
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
---
diff -puN include/asm-um/ptrace-i386.h~uml-add-profile-pc-i386 include/asm-um/ptrace-i386.h
--- clean-linux-2.6.11/include/asm-um/ptrace-i386.h~uml-add-profile-pc-i386 2005-06-06 17:57:23.000000000 +0200
+++ clean-linux-2.6.11-paolo/include/asm-um/ptrace-i386.h 2005-06-06 17:57:24.000000000 +0200
@@ -30,6 +30,10 @@
#define PT_REGS_SYSCALL_RET(r) PT_REGS_EAX(r)
#define PT_FIX_EXEC_STACK(sp) do ; while(0)
+/* Cope with a conditional i386 definition. */
+#undef profile_pc
+#define profile_pc(regs) PT_REGS_IP(regs)
+
#define user_mode(r) UPT_IS_USER(&(r)->regs)
#endif
_
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-06-06 16:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-06 13:26 [uml-devel] Problem running SMP-UML (both skas & tt) Sriram Raghunathan
2005-06-06 16:13 ` Blaisorblade
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).