[mythtv-users] 0.20 using way more memory

Brian J. Murrell brian at interlinx.bc.ca
Tue Oct 10 17:04:09 UTC 2006


Unfortunately I don't have any empirical scientific evidence to compare
with as I did not regularly record the memory requirements of the 0.19
myth components, but with 0.20 my 256M BE/FE machine spends way more
time grinding away at the disk as it thrashes pages in and out of swap
than it did with 0.19.

Just to see, here is the current memory usage of my backend, frontend
and commflag processes (respectively):

VmSize:   215524 kB
VmLck:         0 kB
VmRSS:     17592 kB
VmData:   167304 kB
VmStk:        88 kB
VmExe:       832 kB
VmLib:     43836 kB
VmPTE:       152 kB

VmSize:   180648 kB
VmLck:      2084 kB
VmRSS:     39444 kB
VmData:   128304 kB
VmStk:       124 kB
VmExe:      1148 kB
VmLib:     46680 kB
VmPTE:       164 kB

VmSize:    84348 kB
VmLck:         0 kB
VmRSS:     39620 kB
VmData:    36404 kB
VmStk:       104 kB
VmExe:       540 kB
VmLib:     43836 kB
VmPTE:        84 kB

Or if you prefer "top" style output (complete with memory info):

Mem:    256460k total,   251452k used,     5008k free,      392k buffers
Swap:   786416k total,   179376k used,   607040k free,    90880k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND           
15953 root      38  19 84460  38m  12m R 39.7 15.5  11:45.21 mythcommflag.re    
13390 root       0   0  210m  17m 8004 S  3.3  6.9  43:16.59 mythbackend        
10931 root       0   0  179m  38m 8172 S  0.7 15.4   1019:42 mythfrontend       

I think mythfilldatabase has it's own piggish requirements as well as my
256M memory/1G swap machine frequently OOMs with mythfilldatabase
running and kills off things like mysqld and mythbackend:

Oct  9 22:00:37 pvr kernel: oom-killer: gfp_mask=0xd0, order=3
Oct  9 22:00:37 pvr kernel: Mem-info:
Oct  9 22:00:37 pvr kernel: DMA per-cpu:
Oct  9 22:00:37 pvr kernel: cpu 0 hot: low 2, high 6, batch 1 used:5
Oct  9 22:00:37 pvr kernel: cpu 0 cold: low 0, high 2, batch 1 used:1
Oct  9 22:00:37 pvr kernel: Normal per-cpu:
Oct  9 22:00:37 pvr kernel: cpu 0 hot: low 62, high 186, batch 31 used:110
Oct  9 22:00:37 pvr kernel: cpu 0 cold: low 0, high 62, batch 31 used:54
Oct  9 22:00:37 pvr kernel: HighMem per-cpu: empty
Oct  9 22:00:37 pvr kernel: Free pages:       87904kB (0kB HighMem)
Oct  9 22:00:37 pvr kernel: Active:29 inactive:28514 dirty:0 writeback:267 unstable:0 free:21976 slab:8359 mapped:28208 pagetables:332
Oct  9 22:00:37 pvr kernel: DMA free:6272kB min:128kB low:160kB high:192kB lots:384kB active:80kB inactive:3276kB present:16384kB pages_scanned:485 all_unreclaimable? no
Oct  9 22:00:37 pvr kernel: lowmem_reserve[]: 0 240 240
Oct  9 22:00:38 pvr kernel: Normal free:81632kB min:1920kB low:2400kB high:2880kB lots:5760kB active:36kB inactive:110780kB present:245760kB pages_scanned:74697 all_unreclaimable? no
Oct  9 22:00:38 pvr kernel: lowmem_reserve[]: 0 0 0
Oct  9 22:00:38 pvr kernel: HighMem free:0kB min:128kB low:160kB high:192kB lots:384kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
Oct  9 22:00:38 pvr kernel: lowmem_reserve[]: 0 0 0
Oct  9 22:00:38 pvr kernel: DMA: 392*4kB 320*8kB 132*16kB 1*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 6272kB
Oct  9 22:00:38 pvr kernel: Normal: 10968*4kB 3824*8kB 432*16kB 0*32kB 0*64kB 0*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 81632kB
Oct  9 22:00:38 pvr kernel: HighMem: empty
Oct  9 22:00:38 pvr kernel: Swap cache: add 1077947, delete 1066587, find 234270/321493, race 50147+0
Oct  9 22:00:38 pvr kernel: Free swap  = 580376kB
Oct  9 22:00:38 pvr kernel: Total swap = 786416kB
Oct  9 22:00:38 pvr kernel: Free swap:       580376kB
Oct  9 22:00:38 pvr kernel: 65536 pages of RAM
Oct  9 22:00:38 pvr kernel: 0 pages of HIGHMEM
Oct  9 22:00:38 pvr kernel: 2744 reserved pages
Oct  9 22:00:38 pvr kernel: 0 pages of BadRAM
Oct  9 22:00:38 pvr kernel: 20113 pages shared
Oct  9 22:00:38 pvr kernel: 11360 pages swap cached
Oct  9 22:00:38 pvr kernel: 0 pages dirty
Oct  9 22:00:38 pvr kernel: 267 pages writeback
Oct  9 22:00:38 pvr kernel: 28208 pages mapped
Oct  9 22:00:38 pvr kernel: 8359 pages slab
Oct  9 22:00:38 pvr kernel: 332 pages pagetables
Oct  9 22:00:38 pvr kernel: Out of Memory: Killed process 15651 (mysqld).

b.

-- 
My other computer is your Microsoft Windows server.

Brian J. Murrell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20061010/a968e296/attachment.pgp 


More information about the mythtv-users mailing list