All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [uml-devel] Recent patches of note
@ 2005-06-16 22:59 Anthony Brock
  0 siblings, 0 replies; 22+ messages in thread
From: Anthony Brock @ 2005-06-16 22:59 UTC (permalink / raw)
  To: jdike, Anthony Brock; +Cc: user-mode-linux-devel

I don't know if this is of interest, but I encountered the following while trying to recreate the freeze. However, the UML will continue to load following this error. For some reason, the freeze doesn't seem repeatable while under the debugger (sigh). Here is the interesting GDB bug:


INIT: Entering runlevel: 2
Starting system log daemon: syslogd.
Starting kernel log daemon: klogd.
Starting OpenLDAP: (db4.2_recover not found),  slapd
Program received signal SIGSEGV, Segmentation fault.
0x080b86d0 in __vmalloc_area (area=0xbd15be0, gfp_mask=210, prot={pgprot = 0}) at string.h:363
363     string.h: No such file or directory.
        in string.h
(gdb) c
Continuing.
BUG: soft lockup detected on CPU#0!

EIP: 0000:[<00000000>] CPU: 0 Not tainted EFLAGS: 00000000
    Not tainted
EAX: 00000000 EBX: 00000000 ECX: 00000000 EDX: 00000000
ESI: 00000000 EDI: 00000000 EBP: 00000000 DS: 0000 ES: 0000
082b76c0:  [<0807c29b>] show_regs+0xeb/0x110
082b76e0:  [<080a0c07>] softlockup_tick+0x57/0x60
082b7700:  [<0808bfa7>] do_timer+0x47/0xd0
082b7710:  [<08063e24>] um_timer+0x14/0xc0
082b7740:  [<080a0e63>] handle_IRQ_event+0x33/0x80
082b7770:  [<080a0f4a>] __do_IRQ+0x9a/0xe0
082b77a0:  [<08060570>] do_IRQ+0x30/0x40
082b77b0:  [<08063d83>] timer_irq+0x113/0x170
082b77e0:  [<080641a8>] timer_handler+0x48/0x50
082b7800:  [<08078d59>] sig_handler_common_skas+0xa9/0x100
082b7830:  [<080747eb>] real_alarm_handler+0x3b/0x60
082b7850:  [<08074857>] alarm_handler+0x47/0x60
082b7870:  [<ffffe420>] _etext+0xf7da0405/0x0
082b7b70:  [<08062356>] default_idle+0x56/0x60
082b7b90:  [<080660a8>] init_idle_skas+0x28/0x30
082b7ba0:  [<0806236b>] cpu_idle+0xb/0x10
082b7bb0:  [<0805f2db>] rest_init+0x2b/0x30
082b7bd0:  [<08049643>] start_kernel+0x173/0x1b0
082b7bf0:  [<080660dc>] start_kernel_proc+0x2c/0x40
082b7c00:  [<0807408c>] run_kernel_thread+0x5c/0x60
082b7ce0:  [<08065dea>] new_thread_handler+0xba/0x110
082b7d20:  [<ffffe420>] _etext+0xf7da0405/0x0


Program received signal SIGSEGV, Segmentation fault.
0x080668ad in copy_chunk_from_user (from=196263936, len=4096, arg=0xbb3bad4) at string.h:199
199     string.h: No such file or directory.
        in string.h
(gdb) bt
#0  0x080668ad in copy_chunk_from_user (from=196263936, len=4096, arg=0xbb3bad4) at string.h:199
#1  0x080666d4 in do_op (addr=196263936, len=4096, is_write=4096, op=0x8066890 <copy_chunk_from_user>, arg=0x1000)
    at arch/um/kernel/skas/uaccess.c:54
#2  0x080667f8 in do_buffer_op (jmpbuf=0x1000, arg_ptr=0x1000) at arch/um/kernel/skas/uaccess.c:95
#3  0x08076aef in setjmp_wrapper (proc=0x80666e0 <do_buffer_op>) at arch/um/os-Linux/util.c:111
#4  0x08066862 in buffer_op (addr=1075109888, len=6102308, is_write=4096, op=0x1000, arg=0x1000)
    at arch/um/kernel/skas/uaccess.c:123
#5  0x08066935 in copy_from_user_skas (to=0xc816000, from=0x4014e000, n=196328148) at arch/um/kernel/skas/uaccess.c:147
#6  0x0809e32f in load_module (umod=0x1000, len=6102308, uargs=0x8050a20 "\211\004$èÜà") at um_uaccess.h:32
#7  0x0809ed85 in sys_init_module (umod=0x1000, len=4096, uargs=0x1000 <Address 0x1000 out of bounds>) at kernel/module.c:1868
#8  0x080662fa in execute_syscall_skas (r=0x5d1d24) at arch/um/kernel/skas/syscall_kern.c:29
#9  0x08066322 in handle_syscall (regs=0xbd0e808) at arch/um/kernel/skas/syscall_kern.c:44
#10 0x08077e4a in handle_trap (pid=19465, regs=0xbd0e808, local_using_sysemu=2) at arch/um/os-Linux/skas/process.c:134
#11 0x080784d2 in userspace (regs=0xbd0e808) at arch/um/os-Linux/skas/process.c:276
#12 0x08065e0c in new_thread_handler (sig=10) at thread_info.h:47
#13 <signal handler called>
#14 0xb7ed9ab1 in kill () from /lib/tls/libc.so.6
#15 0x08073c6a in os_usr1_process (pid=0) at arch/um/os-Linux/process.c:118
#16 0x08074bf1 in set_signals (enable=196310340) at arch/um/os-Linux/signal.c:263
#17 0x08078930 in new_thread (stack=0xbb38000, switch_buf_ptr=0x0, fork_buf_ptr=0x0, handler=0x8065d30 <new_thread_handler>)
    at arch/um/os-Linux/skas/process.c:446
#18 0x08065fc0 in copy_thread_skas (nr=0, clone_flags=8388881, sp=196310340, stack_top=0, p=0xbd0e640, regs=0x0)
    at arch/um/kernel/skas/process_kern.c:125
#19 0x0806227b in copy_thread (nr=0, clone_flags=0, sp=0, stack_top=0, p=0xbb37544, regs=0x0) at arch/um/kernel/process_kern.c:149
#20 0x0bb34000 in ?? ()
#21 0x083da2c0 in ?? ()
#22 0x0bd0e0a0 in ?? ()
#23 0x0bb37a4c in ?? ()
#24 0x08062138 in _switch_to (prev=0x0, next=0x0, last=0xbd0e0a0) at arch/um/kernel/process_kern.c:114
#25 0x0825b191 in schedule () at kernel/sched.c:1642
#26 0x0808522c in do_wait (pid=899, options=4, infop=0x0, stat_addr=0xbdd3a2c, ru=0x0) at kernel/exit.c:1456
#27 0x0808579c in sys_wait4 (pid=0, stat_addr=0x0, options=196310340, ru=0x0) at kernel/exit.c:1532
#28 0x080938b7 in wait_for_helper (data=0xbdd3a14) at kernel/kmod.c:189
#29 0x0807408c in run_kernel_thread (fn=0x8093830 <wait_for_helper>, arg=0xbdd3a14, jmp_ptr=0x0) at arch/um/os-Linux/process.c:215
#30 0x08065dea in new_thread_handler (sig=10) at thread_info.h:47
#31 <signal handler called>
#32 0xb7ed9ab1 in kill () from /lib/tls/libc.so.6
#33 0x08073c6a in os_usr1_process (pid=0) at arch/um/os-Linux/process.c:118
#34 0x08074bf1 in set_signals (enable=144077940) at arch/um/os-Linux/signal.c:263
#35 0x08078930 in new_thread (stack=0xbb34000, switch_buf_ptr=0x0, fork_buf_ptr=0x0, handler=0x8065d30 <new_thread_handler>)
    at arch/um/os-Linux/skas/process.c:446
#36 0x08065fc0 in copy_thread_skas (nr=0, clone_flags=8390417, sp=144077940, stack_top=0, p=0xbd0e0a0, regs=0x0)
    at arch/um/kernel/skas/process_kern.c:125
#37 0x0806227b in copy_thread (nr=0, clone_flags=0, sp=0, stack_top=0, p=0x8967474, regs=0x0) at arch/um/kernel/process_kern.c:149
#38 0xb7ed95fa in siglongjmp () from /lib/tls/libc.so.6
#39 0x08078a24 in switch_threads (me=0x0, next=0xbb37c24) at arch/um/os-Linux/skas/process.c:467
#40 0x08065cdf in switch_to_skas (prev=0x8940040, next=0xbd0e0a0) at arch/um/kernel/skas/process_kern.c:38
---Type <return> to continue, or q <return> to quit---
#41 0x08062138 in _switch_to (prev=0x0, next=0x0, last=0x8940040) at arch/um/kernel/process_kern.c:114
#42 0x0825b191 in schedule () at kernel/sched.c:1642
#43 0x08093e2c in worker_thread (__cwq=0x892c6e0) at kernel/workqueue.c:208
#44 0x080981b9 in kthread (_create=0x8947b24) at kernel/kthread.c:95
#45 0x0807408c in run_kernel_thread (fn=0x8098100 <kthread>, arg=0x8947b24, jmp_ptr=0x0) at arch/um/os-Linux/process.c:215
#46 0x08065dea in new_thread_handler (sig=10) at thread_info.h:47
#47 <signal handler called>
#48 0xb7ed9ab1 in kill () from /lib/tls/libc.so.6
#49 0x00000000 in ?? ()
#50 0x00000000 in ?? ()
#51 0x00000000 in ?? ()
#52 0x00000000 in ?? ()
#53 0x00000000 in ?? ()
#54 0x00000000 in ?? ()
#55 0x00000000 in ?? ()
#56 0x00000000 in ?? ()
#57 0x00000000 in ?? ()
#58 0x08065e80 in release_thread_skas () at arch/um/kernel/skas/process_kern.c:83
Previous frame inner to this frame (corrupt stack?)


Tony


>>> "Anthony Brock" <Anthony_Brock@ous.edu> 06/16/05 03:36PM >>>
Okay, two items of interest:

First, both instances are running the "rngd" daemon for random support. However, this daemon seems to be consuming between 8-15% of the CPU time on a consistent basis. Even after running for 20-30 minutes, the daemon is till busy.

Second, I'm once again enountering problems with launch the UML instance. It likes to hang at:


Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...OK
Checking advanced syscall emulation patch for ptrace...OK
Checking if syscall restart handling in host can be skipped...OK
Checking for the skas3 patch in the host:
  - /proc/mm...found
  - PTRACE_FAULTINFO...found
  - PTRACE_LDT...found
Checking PROT_EXEC mmap in /tmp...OK


I'll see if I can get a backtrace on this...

Tony


>>> Jeff Dike <jdike@addtoit.com> 06/16/05 03:13PM >>>
On Thu, Jun 16, 2005 at 02:26:13PM -0700, Anthony Brock wrote:
> Well, so far this seems to be running fine. However, I'm still
> seeing the load average >= 1 issue. This is a 2.6.12-rc6-mm1 host with
> your patches from this morning running on a 2.6.11.7-skas3-v8 custom
> built host kernel. 

OK, thanks for letting me know.

				Jeff


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click 
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel 



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click 
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id\x16492&opÌk
_______________________________________________
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] 22+ messages in thread
[parent not found: <s2b6982e.048@ORANGE.OUS.EDU>]
[parent not found: <s2b19c99.097@ORANGE.OUS.EDU>]
[parent not found: <s2b1a1ed.010@ORANGE.OUS.EDU>]
[parent not found: <s2b18c1b.063@ORANGE.OUS.EDU>]
* [uml-devel] Recent patches of note
@ 2005-06-16 16:07 Jeff Dike
  2005-06-16 17:36 ` Bodo Stroesser
  0 siblings, 1 reply; 22+ messages in thread
From: Jeff Dike @ 2005-06-16 16:07 UTC (permalink / raw)
  To: user-mode-linux-devel

I'd like to call attention to some recent patches that may be of interest
to people before they hit mainline.  These are all on my incremental patches
page, http://user-mode-linux.sf.net/patches.html

First, sched-starve (http://user-mode-linux.sourceforge.net/work/current/2.6/2.6.12-rc6-mm1/patches/sched-starve)

This fixes a timer initialization botch which resulted in soft lockup
warnings in recent kernels, total non-responsiveness (i.e. nothing
else would be scheduled) under any workload which avoided idling the
kernel, and may be responsible for the load average >= 1 problem.

I don't see that last here for some reason, so I'd like some
confirmation (or not) that this patch fixes that.

Second, I implemented soft interrupts, which reimplements interrupt
enabling and disabling with a flag rather than with sigprocmask.  This
cuts down hugely on the number of system calls that UML makes,
resulting in a very noticable performance increase.  This patch, plus
the other system call reducing patches which immediately follow it,
speed up my kernel builds by 20-25%.  By far the largest piece of this
is softints, although skas-no-flush-kernel also is noticable.

I'd like people to check out softints, at least, and report any
problems.  It's running fine here, but interrupt handling is a
sensitive area, so I'd like to know people are running it without
problems before pushing it to mainline.

				Jeff


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
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] 22+ messages in thread

end of thread, other threads:[~2005-06-20 21:26 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-16 22:59 [uml-devel] Recent patches of note Anthony Brock
     [not found] <s2b6982e.048@ORANGE.OUS.EDU>
2005-06-20 20:11 ` Jeff Dike
     [not found] <s2b19c99.097@ORANGE.OUS.EDU>
2005-06-20 14:53 ` Jeff Dike
2005-06-20 17:59   ` William Stearns
2005-06-20 21:31     ` Blaisorblade
     [not found] <s2b1a1ed.010@ORANGE.OUS.EDU>
2005-06-20 14:47 ` Jeff Dike
     [not found] <s2b18c1b.063@ORANGE.OUS.EDU>
2005-06-16 22:13 ` Jeff Dike
  -- strict thread matches above, loose matches on Subject: below --
2005-06-16 16:07 Jeff Dike
2005-06-16 17:36 ` Bodo Stroesser
2005-06-16 17:47   ` Jeff Dike
2005-06-16 17:55     ` Bodo Stroesser
2005-06-16 18:02       ` Bodo Stroesser
2005-06-16 18:09       ` Blaisorblade
2005-06-16 18:31         ` Bodo Stroesser
2005-06-16 18:41           ` Blaisorblade
2005-06-16 18:40             ` Bodo Stroesser
2005-06-16 18:51               ` Blaisorblade
2005-06-16 22:23                 ` Jeff Dike
2005-06-17  9:09                   ` Bodo Stroesser
2005-06-17 18:36                   ` Blaisorblade
2005-06-17  0:35         ` Jeff Dike
2005-06-17 18:40           ` Blaisorblade

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.