Memory usage

lovrencan

Vu+ Newbie
Gents,
could you please share your memory usage experience?
By specifications, there should be 1GB DDR3 RAM, however usage on my box is all the time above 70%.
Therefore I ran free command via telnet which on my big surprise report:
only 512MB of ram.

Code:
root@vusolo2:~# free
              total        used        free      shared      buffers
  Mem:      571836      455292      116544            0        8948
Swap:            0            0            0
Total:      571836      455292      116544
root@vusolo2:~#
 

komodo

Vu+ User
Hi,

i'v found this on the world of satellite forum


571836 kb is available, the rest is reserved by the system
smile1.gif

Common question for many boxes
smile1.gif
(I even asked the same question myself not so long ago)

Look at /var/log/messages
smile1.gif


In the case of my Quad I see

gbquad user.info kernel: Memory: 572508k/1048576k available (4794k kernel code, 476068k reserved, 1061k data, 196k init, 0k highmem)
 

paolino

Vu+ User+++
Gents,
could you please share your memory usage experience?
By specifications, there should be 1GB DDR3 RAM, however usage on my box is all the time above 70%.
Therefore I ran free command via telnet which on my big surprise report:
only 512MB of ram.

Code:
root@vusolo2:~# free
              total        used        free      shared      buffers
  Mem:      571836      455292      116544            0        8948
Swap:            0            0            0
Total:      571836      455292      116544
root@vusolo2:~#

Trust me!

There is 1 GB of SYSTEM RAM, you can't see a lot of it, only for example Video Buffer RAM. And 571836/1024? How much is it? 558,433 and not 512.

You are running Linux and RAM is for to be used! NOT TO BE FREE!
Please, do not use any RAM Freeing plugin, you will only slow the system!
RAM is used for Linux Buffer and Cache.
 

lovrencan

Vu+ Newbie
If I just move on from here.
When I use wget (i.e. download 10GB file), my memory usage increase up to 99%, even after process is finished, ram is somehow occupied and the only solution to release it, is reboot.

could it be that kernel can't "clean" ram as it should?
 

komodo

Vu+ User
No, it's normal behaviour.

Try this on the command line

cat /proc/meminfo

and there you can see somethign like this

MemTotal: 571836 kB
MemFree: 5424 kB
Buffers: 21144 kB
Cached: 454880 kB
SwapCached: 0 kB
Active: 73156 kB
Inactive: 446044 kB
Active(anon): 46332 kB
Inactive(anon): 276 kB
Active(file): 26824 kB
Inactive(file): 445768 kB

so i fou compare with free

free
total used free shared buffers
Mem: 571836 566544 5292 0 21144
Swap: 0 0 0
Total: 571836 566544 5292

there you can see that active memory usage is only 5424kB and other are Buffers and Cache so, that's why you can see free ram after reboot.
 

paolino

Vu+ User+++
If I just move on from here.
When I use wget (i.e. download 10GB file), my memory usage increase up to 99%, even after process is finished, ram is somehow occupied and the only solution to release it, is reboot.

could it be that kernel can't "clean" ram as it should?

I repeat again: RAM is for to be used, not to bo free! Let the Linux to do his work!
 

lovrencan

Vu+ Newbie
Cheers komodo.
My problem is that reboot is required, without reboot, box will freeze on fast zapping or recording.
My opinion is that ram should be occupied while wget (or similar task) is in use, but when is done, ram shall be released.
 

komodo

Vu+ User
Cheers,

are you sure that the problem is caused by RAM ?

What taks do you do to freeze your box ? I will try on my machine.
 

23732

Vu+ Newbie
I think there is something else that causes your box to crash, because my RAM usage is 98% but my box is still superfast, able to record and do everything else it is supposed to.
 

komodo

Vu+ User
I think there is something else that causes your box to crash, because my RAM usage is 98% but my box is still superfast, able to record and do everything else it is supposed to.

I agree, i have memory usage almost full (of course most of it is Cache and Buffers) but no problems and freezing.

As i wrote, in linux ram is not freed unles is not needed for other process.
 

lovrencan

Vu+ Newbie
Well, if I would download mkv file via wget (to avoid copying on LAN) and after download is finished, scheduled recording will freeze my box.
If wget is not used, issue won't appear.

Also noticed that even task via samba would do same thing...
 

komodo

Vu+ User
So you download file via wget on your box from some location and recording freeze ?

And what do you do with samba to freeze your box ?

Sorry for many questions but i don't have a clue why should this happened.
 

lovrencan

Vu+ Newbie
No worries komodo, it seems that my explanation was not clear.
wget:
I am using dedicated remote ubuntu server to download "large files", from there I normally transfer files to my home location.
Instead of downloading to computer, I am downloading to VU+, where I watch as well.
samba:
used for local transfers to xtreamer...

in both cases ram usage is high, and that leads to occasional issues mentioned before.
 

komodo

Vu+ User
Hi,

so i made som tests, but i am sure that your problem is not ram.

I have copied 10GB file, and i was recording 2 streams and one viewing.

And here are the results.

Before copying.

root@vusolo2:~# free
total used free shared buffers
Mem: 571836 565772 6064 0 110848
Swap: 0 0 0
Total: 571836 565772 6064

root@vusolo2:~# cat /proc/meminfo
MemTotal: 571836 kB
MemFree: 5452 kB
Buffers: 110700 kB
Cached: 345400 kB
SwapCached: 0 kB
Active: 130576 kB
Inactive: 362908 kB
Active(anon): 38824 kB
Inactive(anon): 20 kB
Active(file): 91752 kB
Inactive(file): 362888 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 572 kB
Writeback: 0 kB
AnonPages: 37376 kB
Mapped: 13116 kB
Shmem: 1432 kB
Slab: 49200 kB
SReclaimable: 36524 kB
SUnreclaim: 12676 kB
KernelStack: 720 kB
PageTables: 404 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 285916 kB
Committed_AS: 107340 kB
VmallocTotal: 509876 kB
VmallocUsed: 216972 kB
VmallocChunk: 252140 kB

During copying, from top

Mem: 566176K used, 5660K free, 0K shrd, 3864K buff, 458084K cached
CPU: 5.4% usr 30.1% sys 0.0% nic 50.4% idle 4.8% io 0.0% irq 9.0% sirq
Load average: 1.06 0.87 0.53 2/95 3769
PID PPID USER STAT VSZ %MEM CPU %CPU COMMAND
1600 5551 root R 2748 0.4 0 36.3 wget http://192.168.2.2/komodo/testfile

So as you can see, no extra memory usage.

And here you can see that whole file was uploaded to VU+.

root@vusolo2:/media/hdd/temp# wget http://192.168.2.2/komodo/testfile
Connecting to 192.168.2.2 (192.168.2.2:80)
testfile 100% |*****************************************************************************| 9765M 00:00:00 ETA
root@vusolo2:/media/hdd/temp#

And as i wrote and you can see in the attachement, two recordings are active, one of them HD and one channel was online.

So yor problem is sure not in RAM, maybe you could change your HDD, or return your box, maybe is faulty.

Regards

Martin
 

Attachments

  • record.png
    record.png
    16.7 KB · Views: 20
Top