
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday, 2019-11-29 at 14:57 -0000, Peter Suetterlin wrote:
Hi list,
while not realy OS related, here's an issue that twists my mind:
I have modified some script I found (was pointed to via some article...) to generate a list of processes that use swap, and how much.
I use top for that. First I configure it to add a column for swap, and save that change. Then I tell it to sort by swap usage ( don't save this). Example: top - 22:53:46 up 4 days, 3:46, 2 users, load average: 1,61, 1,83, 1,83 Tasks: 530 total, 1 running, 528 sleeping, 0 stopped, 1 zombie %Cpu(s): 1,4 us, 0,5 sy, 0,0 ni, 78,8 id, 19,3 wa, 0,0 hi, 0,0 si, 0,0 st KiB Mem : 8161260 total, 2426500 free, 4112584 used, 1622176 buff/cache KiB Swap: 25165820 total, 17201572 free, 7964248 used. 3453060 avail Mem . . . . . . . . . . . . . . . . . . . . . ^^^^^^^^^^^^^ that's the total swap usage PID USER PR NI VIRT RES SHR SWAP S %CPU %MEM TIME+ COMMAND 19744 cer 20 0 3130140 43480 6024 1,517g S 0,000 0,533 18:25.82 shotwell 5651 vscan 20 0 1036832 28220 3800 775904 S 0,000 0,346 6:30.14 clamd . . . . . . . . . . . . . . . . . . . . . . .^^^^^^ and this column shows swap usage per program 5048 cer 39 19 3024756 18592 6924 715128 S 0,000 0,228 45:50.73 tracker-extract 31990 cer 20 0 1923896 97836 14592 332292 S 0,000 1,199 3:28.64 nautilus 5528 cer 20 0 4644044 992,5m 70292 272456 S 0,000 12,45 118:52.81 thunderbird-bin 5092 cer 39 19 1419384 34728 6896 199780 S 0,000 0,426 4:34.88 tracker-miner-f 20333 astro 20 0 1821748 28724 8720 186340 S 0,000 0,352 3:08.35 thunar 2275 named 20 0 538496 19708 4380 185840 S 0,000 0,241 0:35.89 named 1333 astro 20 0 1993100 42052 8084 184756 S 0,000 0,515 6:49.56 shotwell 5854 cer 20 0 4427732 514996 184988 142424 S 0,595 6,310 86:28.27 firefox 6055 cer 20 0 3169144 152376 47676 127496 S 0,298 1,867 98:05.94 Web Content 18028 cer 20 0 3989976 52368 420 114704 S 0,000 0,642 1:28.04 java 4049 root 20 0 709380 146688 115732 105080 S 0,893 1,797 44:44.71 X 14087 cer 20 0 3229840 153236 42480 100252 S 0,000 1,878 12:42.52 Web Content 6251 cer 20 0 3100408 77560 18884 94316 S 0,298 0,950 20:09.69 Web Content 19619 cer 20 0 6664632 479476 97480 92448 S 0,000 5,875 10:49.17 soffice.bin 3927 root 20 0 213912 1788 1276 85504 S 0,000 0,022 0:00.24 spamd child 3928 root 20 0 213912 1960 1384 85440 S 0,000 0,024 0:00.27 spamd child 3923 root 20 0 213912 6036 4532 84512 S 0,000 0,074 0:31.12 spamd 5954 cer 20 0 3400044 306312 92404 78460 S 0,000 3,753 32:19.02 Web Content 2253 mysql 20 0 1885356 1228 1228 77824 S 0,298 0,015 1:10.61 mysqld 5989 cer 20 0 3271920 157156 32576 76188 S 0,000 1,926 14:26.81 Web Content 6007 cer 20 0 3201780 237676 82476 68952 S 0,298 2,912 9:02.81 Web Content ... - -- Cheers, Carlos E. R. (from openSUSE 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXeGV0hwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVeo8An0UPQvDGLk3yk/bTvMyX fRnb/GOFAJ9vsWXYCIRYHabifBJc8u5vzzIQQA== =3tI4 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org