[GE users] max open files (ulimit -n) in SGEv62u5

thamizhannal Thamizhannal.Paramasiuam at Honeywell.com
Sun May 2 10:46:53 BST 2010


Hello,

Here are the steps to set "max number of open files" for any user in
RHEL4. Hope it would work for RHEL5 also

1. Edit /etc/security/limits.conf and set soft & hard limit for max open
file limits
root              soft    nofile          5000
root              hard    nofile          6000

Comment the below line in the same file
#<domain>        <type>  <item>  <value>

2. Edit the /etc/pam.d/system-auth, and add this entry:
session required /lib/security/$ISA/pam_limits.so

3. Open new shell and Issue ulimit -a. Here you could see the update
ulimit value.
Note: No need to restart any service for this

At my knowledge updating "max number of open files" in shell would be
persist only in that shell 

Regards,
Thamizhannal P

-----Original Message-----
From: cjf001 [mailto:john.foley at motorola.com] 
Sent: Sunday, May 02, 2010 6:58 AM
To: users at gridengine.sunsource.net
Subject: Re: [GE users] max open files (ulimit -n) in SGEv62u5

Mi -

I've had issues with ulimit and SGE before, so I thought I'd do a quick
look at this - we use RHEL5 as our primary OS here, and bash as the
primary shell, so when I do a "man ulimit" on this system, I see :

> bash :
>
> ulimit:
>
> -n The maximum number of open file descriptors (most systems do not
allow this value to be set)

so, if the comment about "most systems" is true, then you might not be
able to
change this value without changing a kernel setting or perhaps even
recompiling
the kernel. You may need to check with an expert on your particular OS.

     John

mzhou wrote:
> Hi,
>
> We are using SGEv62u5.
> We have a program that needs to open lots of files. I set
"S_DESCRIPTORS=1000000" in "execd_params", and submited a job "ulimit
-n", the value is 65535.
>
> I wonder where "65535" come from, is it some uplimit set in SGE?
>
> Thanks,
>
> Mi Zhou
> Stjude Children's Research Hospital
>
> ------------------------------------------------------
>
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessage
Id=255565
>
> To unsubscribe from this discussion, e-mail:
[users-unsubscribe at gridengine.sunsource.net].



-- 
########################################################################
###
# John Foley                          # Location:  IL93-E1-21S
#
# IT & Systems Administration         # Maildrop:  IL93-E1-35O
#
# Antenna & Mechanical Simulation Grp #    Email:
john.foley at motorola.com #
# Motorola, Inc. -  Mobile Devices    #    Phone: (847) 523-8719
#
# 600 North US Highway 45             #      Fax: (847) 523-5767
#
# Libertyville, IL. 60048  (USA)      #     Cell: (847) 460-8719
#
########################################################################
###
               (this email sent using SeaMonkey on Windows)

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessage
Id=255750

To unsubscribe from this discussion, e-mail:
[users-unsubscribe at gridengine.sunsource.net].

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=255790

To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list