Subject: Re: [vserver] Ressources limits
From: Nikolay Kichukov <hijacker@oldum.net>
Date: Thu, 13 May 2010 15:36:38 +0300

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,
well just alter the contents as required.

Cheers,
- -Nik

Sam Przyswa wrote:
> Nikolay Kichukov a écrit :
>> hi Sam,
>> can you check your /etc/pam.d/sshd and look for a line like this:
>> session    required     pam_limits.so
>>
>> if that is the case, you can check also the limits applied by PAM here:
>>
>> /etc/security/limits.conf
>>   
> 
> I have this line on both files on guest as well on vserver host
> 
> Sam.
> 
> 
>> Sam Przyswa wrote:
>>  
>>> Nikolay Kichukov a écrit :
>>>    
>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>> Hash: SHA1
>>>>
>>>> Hi,
>>>> did you check your pam limits for ssh login?
>>>>         
>>> I got this:
>>>
>>> zimbra:~# ulimit -a
>>> core file size          (blocks, -c) 0
>>> data seg size           (kbytes, -d) unlimited
>>> scheduling priority             (-e) 0
>>> file size               (blocks, -f) unlimited
>>> pending signals                 (-i) 16382
>>> max locked memory       (kbytes, -l) 64
>>> max memory size         (kbytes, -m) unlimited
>>> open files                      (-n) 1024
>>> pipe size            (512 bytes, -p) 8
>>> POSIX message queues     (bytes, -q) 819200
>>> real-time priority              (-r) 0
>>> stack size              (kbytes, -s) 8192
>>> cpu time               (seconds, -t) unlimited
>>> max user processes              (-u) unlimited
>>> virtual memory          (kbytes, -v) unlimited
>>> file locks                      (-x) unlimited
>>>
>>> Sam.
>>>
>>>
>>>    
>>>>> Curiously when connect the guest with command "vserver guest enter"
>>>>> the
>>>>> ulimit -n give 524288 but if I connect by SSH on guest the ulimit -n
>>>>> give 1024 and I can't set the ulimit by command "ulimit -n 524288"
>>>>> that
>>>>> give me operation denied !?
>>>>>
>>>>> I use 2.6.26-2-vserver-686-bigmem on Debian squeeze/sid
>>>>>
>>>>> Sam.
>>>>>
>>>>>         
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEcBAEBAgAGBQJL6/JWAAoJEDFLYVOGGjgXlOAH/icygtEC/plSXsRRDHeXZ7MO
0P263H8EAD/cwQ8wZsVL82ER8dN/h4FmZuf6iOGxcpgj/1dKp1JhG0MB/QBSxsTi
zRUolUmqVBvxueNvwam54qOXYltKpmEt/ztyI5jIAElLSn1clt36QXoLe+YunAjr
VXreSeq9+rnLijBhveh4ujK8oXAdxfJxKl1ZrWEvmfgTvqVE3RX18pi7LdomMrmc
FFUBV3kmFp1YMsnI4qHqztcmR0mexBSwon2fFULhZR8TitZE9whJm00Rgi1m8bwI
3QJr1UmjHT9ZzrEJY21CPaymmGdNg3ynnTHYZ5/aIQKVS+4UFN1qgzl4W82Y7tA=
=sqGs
-----END PGP SIGNATURE-----