]> sourceware.org Git - lvm2.git/commit
Limit thread stack
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 11 Oct 2011 09:18:49 +0000 (09:18 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 11 Oct 2011 09:18:49 +0000 (09:18 +0000)
commit0448a9265ad270bcc8d07d19da78fbcb3a05bd44
tree9db77f94a2a12457a08416489f7050e4acb8da29
parentdde1ca1ef17eb01d5fee5a7af0e4a79fe9712254
Limit thread stack

Since default thread stack size is around 8MB and clvmd creates for now thread
for message, clvmd may easily reach multi GB size of in-memory locked pages
(runs with mlockall()).

This patch significantly reduces memory usage to just tens of MB,
and now different reasons are the cause of server overloading.
Now we are running out of free file descriptors mostly.
daemons/clvmd/clvmd.c
This page took 0.0275 seconds and 5 git commands to generate.