[mythtv-users] ticket locking

Robin Gilks g8ecj at gilks.org
Thu Jun 19 21:42:56 UTC 2008


> 2008/6/19 Udo van den Heuvel <udovdh at xs4all.nl>:
>>> As many others have said, there is a difference between
>>> virtual (VSZ) and resident (RSS). This is not as simple as
>>> "swapped out" and "swapped in".
>>
>> What does top report?
>> And even if there's not 400 megs in RAM, why does it get to big?
>> I still think it is not OK when a process starts at less than 10% grows
>> to 40% over time.
>
> The usage at the top of top reports total memory usage, including
> buffers and cache etc. In a idea world that should be close to 100% as
> possible with alot of memory in use as cache. My system is currently
> running at 787mb "In Use" with 560mb being used as cache.
>
> What you need to look at is the "RES" column for the mythbackend
> process. After a restart this morning its sitting at 56mb on my
> machine.
>
> <apologies for munged text>
>
> Tasks:  90 total,   1 running,  89 sleeping,   0 stopped,   0 zombie
> Cpu(s): 23.3%us,  2.7%sy,  0.0%ni, 73.0%id,  0.0%wa,  0.0%hi,  1.0%si,
> 0.0%st
> Mem:   1024672k total,   787092k used,   237580k free,        8k buffers
> Swap:  1004052k total,   135620k used,   868432k free,   560320k cached
>
>   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
>  5215 mysql     20   0  241m  25m 3368 S 10.0  2.6 280:17.48 mysqld
> 24129 mythtv    20   0  464m  56m  18m S 10.0  5.6   9:25.52 mythbackend
>     1 root      20   0  3720  488  456 S  0.0  0.0   0:15.89 init
>     2 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kthreadd
>     3 root      15  -5     0    0    0 S  0.0  0.0   0:01.04 ksoftirqd/0

Another data point - after running 23 days on a 1gig system that also runs
loads of other stuff - as you can see the virtual usage is well over 1gig
but of that mythbackend is actually only using 21megs

15583 root      20   0  347m 191m 4168 S  0.3 19.0 197:14.52 X
15919 g8ecj     20   0  258m  76m  20m S  1.0  7.6 716:22.23 mythfrontend
24879 mythtv    20   0  245m  21m  13m S  0.0  2.1  54:06.52 mythbackend
14173 g8ecj     20   0  241m 103m  26m S  0.0 10.2  73:16.77 firefox-bin
 4490 g8ecj     20   0  219m  31m  11m S  0.0  3.1  11:59.99 java_vm
 6991 mysql     20   0  158m  27m 4176 S  0.0  2.7 106:52.40 mysqld


-- 
Robin Gilks




More information about the mythtv-users mailing list