CPUG

The Check Point User Group

A Resource For The Check Point Community.  Fast.  Useful.  Independent.

1. CCSA/CCSE One-Week Dual-Certification Training Course with CPUG in San Francisco!
    Courses Starting 12/8, (2009) 1/19, 2/9, 3/9, 4/6, 5/4, 6/8, 7/6, 8/3.
2. Join Us On LinkedIn - We now have a CPUG group.


Go Back   CPUG: The Check Point User Group > Check Point Firewall-1/VPN-1 Platforms > Sun Solaris
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2005-09-08
Junior Member
 
Join Date: 2005-09-08
Posts: 2
Rep Power: 0
moergi has an average reputation (10+)
Default Too many open files on Solaris, but not a rlim_fd_max issue

We are running a R55 cluster on Solaris 8. The fwd daemon opens an unsually high amount of file descriptors. When the 256th file descriptors is returned by open(), fwd refuses it with "too many open files".

rlim_fd_max and rlim_fd_cur are set to 1024. The system call open() returns 256, not an error.

So I think fwd is simply not supposed to open that many files.

When looking at what files fwd opens, it looks like this:

# pfiles `pgrep -fx fwd`
465: fwd
Current rlimit: 1024 file descriptors
0: S_IFCHR mode:0666 dev:32,0 ino:112666 uid:0 gid:3 rdev:13,2
O_RDONLY|O_LARGEFILE
1: S_IFCHR mode:0666 dev:32,0 ino:112666 uid:0 gid:3 rdev:13,2
O_WRONLY|O_LARGEFILE
2: S_IFCHR mode:0666 dev:32,0 ino:112666 uid:0 gid:3 rdev:13,2
O_WRONLY|O_LARGEFILE
[snip]
252: S_IFREG mode:0775 dev:32,0 ino:1588454 uid:0 gid:0 size:0
O_WRONLY
253: S_IFREG mode:0660 dev:32,0 ino:1447536 uid:0 gid:0 size:0
O_WRONLY
254: S_IFREG mode:0775 dev:32,0 ino:1588455 uid:0 gid:0 size:0
O_WRONLY
255: S_IFREG mode:0660 dev:32,0 ino:1447536 uid:0 gid:0 size:0
O_WRONLY

Or with lsof:

[root@juliette] /opt/CPfw1-R55/log # lsof -p `pgrep -fx fwd`
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
fw 465 root cwd VDIR 32,0 1024 2 /
fw 465 root txt VREG 32,0 457768 1126537 /opt/CPfw1-R55/lib/libCPLogKlogUnify.so
fw 465 root txt VREG 32,0 55456 157814 /opt/CPshrd-R55/lib/libcpP11Modules.so
fw 465 root txt VREG 32,0 134452 157850 /opt/CPshrd-R55/lib/libfwadb.so
[snip]
fw 465 root 247w VREG 32,0 0 1447536 / (/dev/dsk/c1t0d0s0)
fw 465 root 248w VREG 32,0 0 1588452 / (/dev/dsk/c1t0d0s0)
fw 465 root 249w VREG 32,0 0 1447536 / (/dev/dsk/c1t0d0s0)
fw 465 root 250w VREG 32,0 0 1588453 / (/dev/dsk/c1t0d0s0)
fw 465 root 251w VREG 32,0 0 1447536 / (/dev/dsk/c1t0d0s0)
fw 465 root 252w VREG 32,0 0 1588454 / (/dev/dsk/c1t0d0s0)
fw 465 root 253w VREG 32,0 0 1447536 / (/dev/dsk/c1t0d0s0)
fw 465 root 254w VREG 32,0 0 1588455 / (/dev/dsk/c1t0d0s0)
fw 465 root 255w VREG 32,0 0 1447536 / (/dev/dsk/c1t0d0s0)

Here the open() system call:

465: open("/opt/CPfw1-R55/tmp/ether.tmp", O_RDONLY) = 256
465: close(256)

And here the message in fwd.elg:

Failed to open file 'ether.tmp': Too many open files

Does anybody have seen this before?

Thanks,
Marc
Reply With Quote
  #2 (permalink)  
Old 2005-09-08
Junior Member
 
Join Date: 2005-08-25
Posts: 5
Rep Power: 0
yowieWithin has an average reputation (10+)
Default Re: Too many open files on Solaris, but not a rlim_fd_max issue

If you have just changed some firewall objects, or imported the policy & objects you may have firewall objects clashing e.g. with a shared address or name.
YW
Reply With Quote
  #3 (permalink)  
Old 2005-09-08
Junior Member
 
Join Date: 2005-09-08
Posts: 2
Rep Power: 0
moergi has an average reputation (10+)
Default Re: Too many open files on Solaris, but not a rlim_fd_max issue

Thanks YW for your input.

I verified each IP on each member. No clashing. BTW, it happens only on the active node.

Cheers,
Marc
Reply With Quote
  #4 (permalink)  
Old 2006-04-06
Member
 
Join Date: 2006-01-20
Posts: 39
Rep Power: 0
bvanniekerk has an average reputation (10+)
Default Re: Too many open files on Solaris, but not a rlim_fd_max issue

Hi

You didn't perhaps get a weird message "rand_something something_entropy: Failed for all sources" from the GUI, did you?

rgrds
b

Last edited by bvanniekerk; 2006-04-06 at 04:01. Reason: omitted something
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -7. The time now is 18:32.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0