Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jun 1998 10:02:10 +0100
From:      Keith Jones <keith@blueberry.co.uk>
To:        Dean Hollister <dean@odyssey.apana.org.au>
Subject:   Re: Killing a process?
Message-ID:  <19980618100210.47968@blueberry.co.uk>
In-Reply-To: <Pine.BSF.3.96.980618145131.505A-100000@odyssey.apana.org.au>; from Dean Hollister on Thu, Jun 18, 1998 at 02:55:55PM %2B0800
References:  <Pine.BSF.3.96.980618024849.21295A-100000@super-g.inch.com> <Pine.BSF.3.96.980618145131.505A-100000@odyssey.apana.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
I don't suppose forcibly unmounting /proc is an option.....? That might
cause those 'ps' process to exit. Having said that, the OS might object
strenuously to that kind of treatment.... anyone?

Keith


On Thu, Jun 18, 1998 at 02:55:55PM +0800, Dean Hollister wrote:

> bash# df
> Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> /dev/wd0s1a   1014255   599665   333450    64%    /
> /dev/wd1s1e    998239   501892   416488    55%    /drive2a
> /dev/wd1s1f    998239   564060   354320    61%    /drive2b
> /dev/wd1s1g   1078895   721244   271340    73%    /drive2c
> procfs              4        4        0   100%    /proc
> 
> bash# mount
> /dev/wd0s1a on / (local, with quotas)
> /dev/wd1s1e on /drive2a (local)
> /dev/wd1s1f on /drive2b (local, with quotas)
> /dev/wd1s1g on /drive2c (local, with quotas)
> procfs on /proc (local)
> 
> bash# ps
>   PID  TT  STAT      TIME COMMAND
>   511  p0  S      0:00.10 bash
>   744  p0  R+     0:00.01 ps
> 22132  p2- I      0:00.11 bash
> 22144  p2- D      0:00.10 ps -ax
> 27741  v0  Is+    0:00.02 /usr/libexec/getty Pc ttyv0
> 12908  v1- D      0:00.08 ps -ax
> 23540  v1  Is+    0:00.02 /usr/libexec/getty Pc ttyv1
> 12959  v2- D      0:00.07 ps -a
> 16451  v2  Is+    0:00.02 /usr/libexec/getty Pc ttyv2
> 12986  v3  Is+    0:00.02 /usr/libexec/getty Pc ttyv3
>   196 con- I      0:00.00 /bin/sh /usr/local/etc/rc.news
>   199 con- I      3:48.26 /bin/sh /usr/local/news/bin/innwatch
>   213 con- I      0:00.03 /bin/sh /etc/ppp/Ozemail/connect-script
>   214 con- I      0:00.01 /bin/sh /usr/local/sbin/RunCache
>   215 con- I      3:57.19 /usr/local/bin/bash /root/syscheck
>   222 con- I      0:10.94 /bin/bash /usr/local/killer/daemon
> 14139  d0  S+     0:00.08 /usr/sbin/pppd /dev/ttyd0 38400 203.11.114.1:203.11.
> 29034 cue  Ss+    0:00.17 /usr/sbin/pppd /dev/cue0 38400 203.11.114.1:203.11.1
> 23281 cue  Ss+    0:00.13 /usr/sbin/pppd /dev/cue1 38400 203.11.114.1:203.11.1
>   491 cue  S+     0:00.04 /usr/sbin/pppd /dev/cue2 38400 203.11.114.1:203.11.1
> 26268 cue  S+     0:00.05 /usr/sbin/pppd /dev/cue3 38400 203.11.114.1:203.11.1
> 27422 cue  Ss+    0:00.15 /usr/sbin/pppd /dev/cue4 38400 203.11.114.1:203.11.1
> 25157 cue  Ss+    0:00.13 /usr/sbin/pppd /dev/cue5 38400 203.11.114.1:203.11.1
> 29266 cue  Ss+    0:00.11 /usr/sbin/pppd /dev/cue6 38400 203.11.114.1:203.11.1
> 20061 cue  Ss+    0:00.15 /usr/sbin/pppd /dev/cue7 38400 203.11.114.1:203.11.1
>   221 cue  Ss+    0:19.51 /usr/local/sbin/upsd
> 
> bash$ ps -l
>   UID   PID  PPID CPU PRI NI   VSZ  RSS WCHAN  STAT  TT       TIME COMMAND
>   144   508   507   0  10  0   876  728 wait   Ss    p0    0:00.12 -bash (bash
>   144   762   508   1  28  0   636  248 -      R+    p0    0:00.00 ps -l
>   144  6892     1   1  -6  0   716   12 pfslck D     p0-   0:00.10 ps -axl
>   144 16593     1   2  -6  0   712   12 pfslck D     p0-   0:00.08 ps -a
>   144   505 28064   0   2  0  1564 1472 select I+    p1    0:00.71  (pine)
>   144 28064 28063   0  10  0   880  732 wait   Is    p1    0:01.02 -bash (bash
>   144  7991     1   2  -6  0   720   12 pfslck D     v0-   0:00.08 ps -ax
>   144  9289     1  17  -6  0   712   12 pfslck D     v0-   0:00.06 ps -ax
>   144 12884     1   4  -6  0   712   12 pfslck D     v0-   0:00.07 ps -ax
>   144 15863     1   1  -6  0   712   12 pfslck D     v0-   0:00.09 ps -ax
> 
> bash$ ps
>   PID  TT  STAT      TIME COMMAND
>   508  p0  Ss     0:00.13 -bash (bash)
>   770  p0  R+     0:00.00 ps
>  6892  p0- D      0:00.10 ps -axl
> 16593  p0- D      0:00.08 ps -a
>   505  p1  S+     0:00.93  (pine)
> 28064  p1  Is     0:01.02 -bash (bash)
>  7991  v0- D      0:00.08 ps -ax
>  9289  v0- D      0:00.06 ps -ax
> 12884  v0- D      0:00.07 ps -ax
> 15863  v0- D      0:00.09 ps -ax

-- 
v Keith Jones                 Systems Manager, Blueberry New Media Ltd. v
| Postal Mail: 2/10 Harbour Yard, Chelsea Harbour, LONDON, UK. SW10 0XD |
| Telephone: +44 (0)171 351 3313               Fax: +44 (0)171 351 2476 |
^ Email: Keith.Jones@blueberry.co.uk   WWW: http://www.blueberry.co.uk/ ^

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980618100210.47968>