[squid-users] cant increase max files open in "limits.conf"

From: Ahmad <ahmed.zaeem_at_netstream.ps>
Date: Sat, 11 May 2013 23:51:20 -0700 (PDT)

hi ,
i have squid server that can make about 70 M in the rush hour , i doubt
that there is limitation and i can make better than 70 M be if i changed
ulimits value .

i want to ask ,
if i type
ulimit -n
its only 1024
=========================================
i modified the file /etc/security/limits.conf
and put at the end of that file :
* - nofile 65536
====================================
root_at_debian:~# cat /etc/security/limits.conf
# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#<domain> <type> <item> <value>
#
#Where:
#<domain> can be:
# - an user name
# - a group name, with @group syntax
# - the wildcard *, for default entry
# - the wildcard %, can be also used with %group syntax,
# for maxlogin limit
# - NOTE: group and wildcard limits are not applied to root.
# To apply a limit to the root user, <domain> must be
# the literal username root.
#
#<type> can have the two values:
# - "soft" for enforcing the soft limits
# - "hard" for enforcing hard limits
#
#<item> can be one of the following:
# - core - limits the core file size (KB)
# - data - max data size (KB)
# - fsize - maximum filesize (KB)
# - memlock - max locked-in-memory address space (KB)
# - nofile - max number of open files
# - rss - max resident set size (KB)
# - stack - max stack size (KB)
# - cpu - max CPU time (MIN)
# - nproc - max number of processes
# - as - address space limit (KB)
# - maxlogins - max number of logins for this user
# - maxsyslogins - max number of logins on the system
# - priority - the priority to run user process with
# - locks - max number of file locks the user can hold
# - sigpending - max number of pending signals
# - msgqueue - max memory used by POSIX message queues (bytes)
# - nice - max nice priority allowed to raise to values: [-20, 19]
# - rtprio - max realtime priority
# - chroot - change root to directory (Debian-specific)
#
#<domain> <type> <item> <value>
#

#* soft core 0
#root hard core 100000
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#ftp - chroot /ftp
#@student - maxlogins 4

# End of file
* - nofile 65536
=====================================================

i restarted my server , and still ulimit -n give me 1024 not 65536 !!!
================================================
im using debian os :
root_at_vyatta:~# cat /etc/debian_version
6.0.5
=========================
in my squid.conf :
===============================
max_filedescriptors 65536
max_open_disk_fds 65536
========================

my question is how to raise this value to 65536 ???
does raising this value make a big performance to squid ??
i think that i have an excellent hardware machine .

advice me ,
regards

--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/cant-increase-max-files-open-in-limits-conf-tp4659923.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Sun May 12 2013 - 06:51:38 MDT

This archive was generated by hypermail 2.2.0 : Sun May 12 2013 - 12:00:05 MDT