PDA

View Full Version : DSL - Uso Memoria


mortimer7
20-10-2014, 13:06
Salve,
su un vecchio notebook uso DSL con JWM come windows manager.
se all'avvio del sistema lancio il comando "free", questo è il risultato:

$ free
total used free shared buffers
Mem: 118552 30356 88196 0 1500
Swap: 273096 0 273096
Total: 391648 30356 361292
quindi 30MB di RAM in uso.

ma ho notato che sommando tutta la RAM usata dai processi attivi, viene molto meno di 30MB:

$ top
[H[JMem: 30408K used, 88144K free, 0K shrd, 1500K buff, 14740K cached
Load average: 0.36 0.14 0.05 (Status: S=sleeping R=running, W=waiting)
[7m PID USER STATUS RSS PPID %CPU %MEM COMMAND[0m
419 root S 4956 418 0.9 4.1 Xvesa
369 dsl S 1692 1 0.0 1.4 bash
422 dsl S 1592 418 0.0 1.3 jwm
446 dsl S 1536 445 0.0 1.2 bash
445 dsl S 1508 1 0.0 1.2 aterm
405 dsl S 1084 369 0.0 0.9 startx
443 dsl S 924 1 0.0 0.7 torsmo
450 dsl R 728 446 0.0 0.6 top
63 root S 712 1 0.0 0.5 cardmgr
364 root S 664 1 0.0 0.5 pump
418 dsl S 644 405 0.0 0.5 xinit
354 root S 560 1 0.0 0.4 syslogd
1 root S 76 0 0.0 0.0 init
2 root SW 0 1 0.0 0.0 keventd
6 root SW 0 1 0.0 0.0 kupdated
3 root SWN 0 1 0.0 0.0 ksoftirqd_CPU0
4 root SW 0 1 0.0 0.0 kswapd
5 root SW 0 1 0.0 0.0 bdflush
68 root SW 0 1 0.0 0.0 khubd
80 root SW 0 1 0.0 0.0 knodemgrd_0


dunque chi è che succhia la restante RAM? forse i processi root? sono tutti indispensabili o posso disabilitarne qualcuno?

Grazie.


questo è il mio .xinitrc:

# put X windows programs that you want started here.
# Be sure to add at the end of each command the &

KEYTABLE="$(getknoppixparam.lua KEYTABLE)"
DESKTOP="$(getoption.lua $HOME/.desktop wm)"
ICONS="$(getoption.lua $HOME/.desktop icons)"

umix -lf .umix 2>/dev/null

[ -f .mouse_config ] && sh .mouse_config &

# sudo sh /opt/eth0.sh
# /usr/bin/start_firewall

# For non-US Keyboards
if [ ${KEYTABLE:0:2} != "us" ]; then
xmodmap -e "clear Mod4" -e "add Mod5 = Mode_switch" &
fi

#if [ "$ICONS" == "xtdesk" ]; then
# for x in `ls -1 .xtdesktop/*.hide 2>/dev/null`; do rm -f ${x%.*}; done
# iconsnap.lua &>/dev/null &
# xtdesk.sh
#elif [ "$ICONS" == "dfm" ]; then
# /usr/bin/dfm &
#else
# [ "$DESKTOP" == "jwm" ] && echo '<?xml version="1.0"?><JWM></JWM>' > .jwmrc-icons
#fi

if egrep -qv lowram /proc/cmdline 2>/dev/null; then
# dillo /usr/share/doc/dsl/getting_started.html &>/dev/null &
torsmo 2>/dev/null &
fi

[ -f ".$DESKTOP.inc" ] && ~/".$DESKTOP.inc"
exec "${DESKTOP:=jwm}" 2>/dev/null

sacarde
20-10-2014, 16:54
usata vuol anche dire che non e' in uso ma in cache


p.s.
per liberare memoria cache:
echo 1 > /proc/sys/vm/drop_caches



p.s.
forse ti puo aiutare il comando: smem
smem - secure memory wiper (secure_deletion toolkit)

mortimer7
21-10-2014, 10:47
purtroppo su DSL non c'è drop_caches e neanche il comando smem. posso farlo in qualche altro modo?

$ ls -lh /proc/sys/vm/
-rw-r--r-- 1 root root 0 Oct 20 22:22 bdflush
-rw-r--r-- 1 root root 0 Oct 20 22:22 block_dump
-rw-r--r-- 1 root root 0 Oct 20 22:22 kswapd
-rw-r--r-- 1 root root 0 Oct 20 22:22 laptop_mode
-rw-r--r-- 1 root root 0 Oct 20 22:22 max-readahead
-rw-r--r-- 1 root root 0 Oct 20 22:22 max_map_count
-rw-r--r-- 1 root root 0 Oct 20 22:22 min-readahead
-rw-r--r-- 1 root root 0 Oct 20 22:22 overcommit_memory
-rw-r--r-- 1 root root 0 Oct 20 22:22 page-cluster
-rw-r--r-- 1 root root 0 Oct 20 22:22 pagetable_cache
-rw-r--r-- 1 root root 0 Oct 20 22:22 vm_anon_lru
-rw-r--r-- 1 root root 0 Oct 20 22:22 vm_cache_scan_ratio
-rw-r--r-- 1 root root 0 Oct 20 22:22 vm_gfp_debug
-rw-r--r-- 1 root root 0 Oct 20 22:22 vm_lru_balance_ratio
-rw-r--r-- 1 root root 0 Oct 20 22:22 vm_mapped_ratio
-rw-r--r-- 1 root root 0 Oct 20 22:22 vm_passes
-rw-r--r-- 1 root root 0 Oct 20 22:22 vm_vfs_scan_ratio




# find / -name *cache*
/etc/ld.so.cache
/home/dsl/firefox/components/necko_cache.xpt
/opt/firefox/components/necko_cache.xpt
/proc/ide/ide0/hda/cache
/proc/sys/vm/pagetable_cache
/proc/sys/vm/vm_cache_scan_ratio
/proc/sys/fs/quota/cache_hits
/proc/net/rt_cache
/proc/net/stat/rt_cache
/proc/net/stat/arp_cache
/usr/share/fonts/afms/adobe/fonts.cache-1
/usr/share/fonts/afms/fonts.cache-1
/usr/share/fonts/fonts.cache-1
/usr/share/fonts/latex-ttf-fonts/fonts.cache-1
/usr/share/fonts/truetype/fonts.cache-1
/usr/share/fonts/truetype/openoffice/fonts.cache-1
/usr/share/fonts/truetype/ttf-bitstream-vera/fonts.cache-1
/usr/share/fonts/ttf/decoratives/fonts.cache-1
/usr/share/fonts/ttf/fonts.cache-1
/usr/share/fonts/ttf/western/fonts.cache-1
/usr/share/fonts/type1/fonts.cache-1
/usr/share/fonts/type1/gsfonts/fonts.cache-1
/usr/share/perl/5.8.7/cacheout.pl
/usr/local/firefox/components/necko_cache.xpt
/usr/X11R6/lib/X11/fonts/encodings/fonts.cache-1
/usr/X11R6/lib/X11/fonts/fonts.cache-1
/usr/X11R6/lib/X11/fonts/util/fonts.cache-1
/usr/bin/fc-cache
/usr/bin/gtk-update-icon-cache
/usr/lib/perl/5.8.7/asm/cache.ph
/usr/lib/perl/5.8.7/linux/cache.ph
/usr/lib/python2.3/dircache.py
/usr/lib/python2.3/lib-old/cmpcache.py
/usr/lib/python2.3/linecache.py
/usr/lib/python2.3/statcache.py
/var/cache
/var/lib/defoma/status-cache
/tce/optional/menu-cache.tcz.md5.txt
/tce/optional/menu-cache.tcz



# find / -name *mem*
/dev/kmem
/dev/mem
/etc/pcmcia/memory
/etc/pcmcia/memory.opts
/lib/libmemusage.so
/lib/modules/2.4.31/kernel/drivers/block/umem.o
/mnt/sda1/findmem.txt
/proc/sys/net/ipv4/tcp_rmem
/proc/sys/net/ipv4/tcp_wmem
/proc/sys/net/ipv4/tcp_mem
/proc/sys/net/ipv4/igmp_max_memberships
/proc/sys/net/core/optmem_max
/proc/sys/net/core/rmem_default
/proc/sys/net/core/wmem_default
/proc/sys/net/core/rmem_max
/proc/sys/net/core/wmem_max
/proc/sys/vm/overcommit_memory
/proc/iomem
/proc/meminfo
/proc/1/mem
/proc/2/mem
/proc/3/mem
/proc/4/mem
/proc/5/mem
/proc/6/mem
/proc/63/mem
/proc/68/mem
/proc/78/mem
/proc/354/mem
/proc/364/mem
/proc/369/mem
/proc/405/mem
/proc/418/mem
/proc/419/mem
/proc/422/mem
/proc/439/mem
/proc/477/mem
/proc/478/mem
/proc/581/mem
/proc/582/mem
/proc/691/mem
/proc/692/mem
/proc/694/mem
/proc/697/mem
/proc/698/mem
/proc/702/mem
/usr/lib/perl/5.8.7/auto/POSIX/memchr.al
/usr/lib/perl/5.8.7/auto/POSIX/memcmp.al
/usr/lib/perl/5.8.7/auto/POSIX/memcpy.al
/usr/lib/perl/5.8.7/auto/POSIX/memmove.al
/usr/lib/perl/5.8.7/auto/POSIX/memset.al

sacarde
21-10-2014, 11:31
- forse basta togliere: 14740K cached


- smem e' un pacchetto a parte, prova se c'e' nei repo

mortimer7
21-10-2014, 11:35
avevo gia' controllato, "smem" non c'e' in MyDSL.

sacarde
21-10-2014, 11:47
usi un kernel 2.4, vero?


in effetti....

mortimer7
21-10-2014, 13:18
sì, 2.4

sacarde
21-10-2014, 13:31
prova li'

http://www.damnsmalllinux.org/forums/