for pid in $(ls /proc | grep '^[0-9]'); do
if [ -f /proc/$pid/status ]; then
grep -H "VmSwap" /proc/$pid/status
fi
done | grep -v "VmSwap:\s*0"
for pid in $(ls /proc | grep '^[0-9]'); do
if [ -f /proc/$pid/status ]; then
grep -H "VmSwap" /proc/$pid/status
fi
done | grep -v "VmSwap:\s*0"
评论区