[Samba] Restriciting memory usage for samba using Cgroups
Gregory Carter
gcarter at aesgi.com
Mon Aug 11 07:52:26 MDT 2014
Buffers are not restricted because user/kernel space pull memory from the buffer pools as needed.
In actuality, buffers are free memory with no current commitment to the run/process queues.
So it makes little sense to restrict them.
Sent from my Samsung Galaxy Tab®|PRO
-------- Original message --------
From: Jonnavithula Sharma <sarmajprs at gmail.com>
Date:08/11/2014 1:34 AM (GMT-06:00)
To: samba at lists.samba.org
Subject: [Samba] Restriciting memory usage for samba using Cgroups
Hi
Currently we are using cgroups to limit samba memory usage on our target
we have limited the memory to 20MB and we are able to see samba is
restricted to it.
With this we are able to restrict the cache memory to ~34MB (never goes
beyond this)
BUt issue we arere facing is the Buffers are increasing gradually and it is
not able to restrict.
Commands Used to restrict memory on target:
echo <samba pid >default/tasks
echo 20971520 > default/memory.limit_in_bytes
Initial memory status:
root at ltqcpe:/sys/fs/cgroup/memory# cat /proc/meminfo
MemTotal: 113760 kB
MemFree: 41692 kB
Buffers: 4108 kB
Cached: 30936 kB
SwapCached: 0 kB
After 5 hrs memory Status Looks like this
root at ltqcpe:/sys/fs/cgroup/memory# cat /proc/meminfo
cat /proMemTotal: 113760 kB
MemFree: 9744 kB
Buffers: 33448 kB
Cached: 32144 kB
SwapCached: 0 kB
Did some one faced this issue?
Could some one has any inputs to fix this problem?Is there any way to limit
buffers also
Other Details:
Linux Version : 3.10.12
Samba Version : 3.0.24
PS: We are doing 1gb file transfer(both read and write simultaneously) for
samba testing
Regards,
Sarma J
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
More information about the samba
mailing list