Re: [Vserver] How to use the sched_pause flag (Host hangs)

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Tue 28 Mar 2006 - 14:25:07 BST
Message-ID: <20060328132507.GC14576@MAIL.13thfloor.at>

On Tue, Mar 28, 2006 at 02:48:11PM +0200, Andreas Baetz wrote:
> # chcontext --xid 400 --flag 0x00000400 -- ps ax
>
> hangs forever
>
> vps on the host shows state H for the PID, the PID cannot be killed.
>
> # chcontext --xid 400 --flag 0x00000100 -- ps ax
> does not unset the sched_pause flag, hangs too
>
> after a few more tries, the host hangs completely and has to be
> rebootet, nothing works except kernel magic sysRq-b

If that _really_ happens, you should check for a
kernel trace, as this would mean that the kernel
had some issues somewhere (well it's an older kernel)

anyway, you do not change flags (or other attributes)
with chcontext, you do manipulate them with the
vattribute command

>
> I have 3 Questions:
>
> 1) how to bring such a context to life again

   vattribute --set --xid 400 --flag ~sched_pause

> 2) how to avoid host hangs

as I said, when the host really hangs, then it is
some kind of issue, in which case I would ask you to
try again with a mainstream kernel and _if_ the issue
persist, let me know (will look into anyway)

> 3) how to change flags for a running context

as mentioned above, with the vattribute command

> # vserver-info
> Versions:
> Kernel: 2.6.15.1.060308-bs1
> VS-API: 0x00020001
> util-vserver: 0.30.209; Jan 8 2006, 12:24:41
>
> Features:
> CC: gcc, gcc (GCC) 4.0.3 20051201 (prerelease) (Debian 4.0.2-5)
> CXX: g++, g++ (GCC) 4.0.3 20051201 (prerelease) (Debian 4.0.2-5)
> CPPFLAGS: ''
> CFLAGS: '-Wall -g -O2 -std=c99 -Wall -pedantic -W -funit-at-a-time'
> CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W -fmessage-length=0 -funit-at-a-time'
> build/host: i486-pc-linux-gnu/i486-pc-linux-gnu
> Use dietlibc: yes
> Build C++ programs: yes
> Build C99 programs: yes
> Available APIs: compat,v11,v13,fscompat,net,oldproc,olduts
> ext2fs Source: e2fsprogs
> syscall(2) invocation: alternative
> vserver(2) syscall#: 273/glibc
>
> Andreas

HTH,
Herbert

> _______________________________________________
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Tue Mar 28 14:25:41 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 28 Mar 2006 - 14:25:42 BST by hypermail 2.1.8