Mailinglist Archive: opensuse (1420 mails)

< Previous Next >
Re: [opensuse] Is this normal? systemd-journal taking nearly 2 gigs of memory.
El 16/01/14 11:38, Carlos E. R. escribió:
On 2014-01-16 15:31, Cristian Rodríguez wrote:
El 16/01/14 11:22, Carlos E. R. escribió:

00007fff929ef000 4K 4K 0K 0K 0K r-xp [vdso]
ffffffffff600000 4K 0K 0K 0K 0K r-xp [vsyscall]
Total: 1988064K 44360K 15251K 43284K 224K

See ..the journal is using ~14.8 Megabytes of memory. not gigabytes of
it. the rest is the process address space (NOT "used" memory) plus
memory that is shared with other process of the system (shared libraries
mostly or totally)

Ok, good.

Then the next question is, how do I find what applications are using
swap? There is about 1.5 GB in use.

Try this

#! /bin/bash
# Shows the swap usage of each process
# Author: Robert Love

for i in /proc/[0-9]*; do
pid=$(echo $i | sed -e 's/\/proc\///g')
swap_pid=$(cat /proc/$pid/smaps |
awk 'BEGIN{total=0}/^Swap:/{total+=$2}END{print total}')
if [ "$swap_pid" -gt 0 ]; then
name=$(cat /proc/$pid/status | grep ^Name: |
awk '{print $2}')
echo "${name} (${pid}) ${swap_pid} kB"
let swap_total+=$swap_pid
echo "Total: ${swap_total} kB"

This will not give you precise results, but will probably help you to figure out things.

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups