На VPS:
ps aux |grep squid
root 3508 0.0 0.1 1716 512 pts/0 S+ 12:37 0:00 grep squid
root 28517 0.0 0.1 2152 516 ? Ss Jun13 0:00 squid
На ноде:
ps aux | grep 'squid'
root 2375 0.0 0.0 61140 716 pts/0 D+ 10:37 0:00 grep squid
root 27493 0.0 0.0 2152 516 ? Ss Jun13 0:00 squid
Но на ноде можно узнать также и pid процесса внутри VE (VPid):
cat /proc/27493/status
Name: squid
State: S (sleeping)
SleepAVG: 78%
Tgid: 27493
Pid: 27493
PPid: 24789
TracerPid: 21170
FNid: 5112
Uid: 0 0 0 0
Gid: 0 0 0 0
FDSize: 64
Groups: 0
envID: 5112
VPid: 28517
PNState: 0
StopState: 0
VmPeak: 2156 kB
VmSize: 2152 kB
VmLck: 0 kB
VmHWM: 516 kB
VmRSS: 516 kB
VmData: 348 kB
VmStk: 88 kB
VmExe: 188 kB
VmLib: 1476 kB
VmPTE: 20 kB
StaBrk: 085b7000 kB
Brk: 085d8000 kB
StaStk: bfd04ee0 kB
Threads: 1
SigQ: 0/204800
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000000000
SigIgn: 0000000000001000
SigCgt: 7ffffffe4781eeff
SigSvd: 0000000000000000
CapInh: 000000007dcceeff
CapPrm: 000000007dcceeff
CapEff: 000000007dcceeff
Cpus_allowed: 7fffffff,ffffffff,ffffffff,ffffffff,ffffffff,ffffffff,ffffffff,ffffffff
Mems_allowed: 00000000,00000001
TaskUB: 5112
MMUB: 5112
Либо pid процесса внутри VE можно вычислить по формуле: VE_pid = NODE_pid + 1024.
Источник: http://forum.openvz.org/index.php?t=msg&goto=34254
No comments:
Post a Comment
Note: only a member of this blog may post a comment.