SliTaz SliTaz Forum

You are not logged in.

#1 2011-06-25 21:14:52

eriksenb
Member
Registered: 2011-06-25
Posts: 11

usb live install not releasing cached memory, firefox crashes with OOM condition

Hello Folks,

Problem: my customized usb live install of Slitaz 3.0, built from ISO with addition programs installed, is not releasing cached memory. Main symptom is Firefox crashes with OOM condition even though there some 600M of available cached memory at the time.

The Live USB boot setup was built with TAZUSB, with my rootfs.gz amounting to about 220MB. "/home" is mounted directed to the USB stick.

Oddly, when I try issuing either sync or "echo 3 > /proc/sys/vm/drop_caches" (or both commands) there is no change to the cached memory reported by "top." I can't put my finger on where meminfo is, but my memory stats are (at this moment):

Top:

  Mem: 846060K used, 179268K free, 0K shrd, 1712K buff, 649172K cached

Free (note that busybox version doesn't support -m flag):

    root@slitaz:/proc/sys/vm# free

                  total         used         free       shared      buffers

     Mem:      1025328       890164       135164            0         1712

    Swap:            0            0            0

    Total:      1025328       890164       135164

As of this writing, I'm running Firefox, but if I continue working as I normally do, soon enough I'll have additional windows open and trigger an OOM KILL of Firefox, even though plenty of memory cache is available.

I'm thinking if most of my filesystem is running from RAM disk, the memory cache isn't doing me any good for those files. My /home is mounted directly to /dev/sdb1 (my booted USB stick) so the caching would help there, I suppose. I guess Firefox'es cached files are under /home and therefore are cached?

Any suggestions? System has 1MB of RAM but no hard drive installed (mostly because there may be a hardware issue with the built-in IDE controller on this old box -- I kept getting "BUS ERRORS" when trying to run from hard drive so switched to USB, which, apart from this problem, serves me well -- the machine will run stable for days with Slitaz as long as I don't overdo things with Firefox windows).

Thanks!

Offline

#2 2011-06-25 22:03:03

eriksenb
Member
Registered: 2011-06-25
Posts: 11

Re: usb live install not releasing cached memory, firefox crashes with OOM condition

Contents of my /proc/meminfo:

root@slitaz:/proc# cat /proc/meminfo

MemTotal:        1025328 kB

MemFree:          110904 kB

Buffers:            1712 kB

Cached:           649512 kB

SwapCached:            0 kB

Active:           191028 kB

Inactive:           1512 kB

Active(anon):     189800 kB

Inactive(anon):      116 kB

Active(file):       1228 kB

Inactive(file):     1396 kB

Unevictable:      647264 kB

Mlocked:               0 kB

HighTotal:        130504 kB

HighFree:            252 kB

LowTotal:         894824 kB

LowFree:          110652 kB

SwapTotal:             0 kB

SwapFree:              0 kB

Dirty:                 0 kB

Writeback:             0 kB

AnonPages:        188580 kB

Mapped:            35728 kB

Slab:              17920 kB

SReclaimable:      14020 kB

SUnreclaim:         3900 kB

PageTables:         1092 kB

NFS_Unstable:          0 kB

Bounce:                0 kB

WritebackTmp:          0 kB

CommitLimit:      512664 kB

Committed_AS:     371988 kB

VmallocTotal:     122880 kB

VmallocUsed:        1764 kB

VmallocChunk:     120308 kB

DirectMap4k:      200696 kB

DirectMap4M:      708608 kB

###

Offline

#3 2011-06-25 22:20:16

eriksenb
Member
Registered: 2011-06-25
Posts: 11

Re: usb live install not releasing cached memory, firefox crashes with OOM condition

Now I notice that the above meminfo dump (with Firefox running) shows:

   Unevictable: 647264 k

Is this normal usage of RAM after decompressing a rootfs.gz of approx. 250MB (as listed in the file system of the USB stick) and running Slitaz 3.0 stable with X?

Maybe so...assuming that the RAM disk is represented by tempfs, I see about 500MB for the RAM disk:

root@slitaz:/proc# df -h

Filesystem                Size      Used Available Use% Mounted on

tmpfs                   500.6M      4.0k    500.6M   0% /dev/shm

/dev/sdb1                 3.7G    574.0M      3.2G  15% /home

Can someone confirm that these numbers make sense and are to be expected?

Thanks!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]