poll: out of memory

poll: out of memory

Post by Dan Kege » Thu, 13 Jan 2000 04:00:00



I've written a little program that attempts to
measure various system limits: file handles,
TCP sockets, TCP ports, and 'TCP connections', or
'how many times I can call connect() on an unbound
socket before I run out of anonymous ports'.  
All work fine except the last.  If I raise ulimit -n
to 2048 or so, and file-max to 8192 or so,
I start seeing out of memory errors from poll()!

Here's my test program:
  http://www.kegel.com/dkftpbench/dklimits.c
Can anyone tell me what's going on?

Thanks,
Dan

 
 
 

1. Page outs with LOTSA memory: why?

I've read up on everything I can regarding Solaris's memory
management, and can't figure out why, with 768 MB of RAM, that it's
still paging out.  It averages between 24 and 100 at any given time.

The only app it's running is a web cache/proxy product from Network
Appliance, therefore there's a huge number of object files it's
managing.  Here's a clip...

# vmstat 3
 procs     memory            page            disk          faults
cpu
 r b w   swap  free  re  mf pi po fr de sr m0 m1 m2 m3   in   sy   cs
us sy id
 0 0 0 758192 325120  0  74 32 18 55  0  5  1  1  1  0  909 2218 1060
6 16 78
 0 1 0 2636576 23768  0   1 42 13 330 0 35  0  0  0  0 1298 5598 3318
17 35 48
 0 0 0 2636568 23760  0   0  8 58 208 0 18  0  0  0  0 1166 3485 1796
14 30 57
 0 0 0 2636568 23768  0   0 13 13 82  0  6  0  0  0  0  927 3943 1680
11 30 59
 0 0 0 2636568 23768  0   0  0 58 186 0 11  0  0  0  0 1408 4989 2033
16 35 50
 0 1 0 2638040 25584  2 306 74 149 301 0 18 11 10 11 0 1556 4339 1722
22 30 49
 0 0 0 2639208 26560  0   0  5 45 45  0  0  0  0  0  0  984 3539 1589
10 29 61
 0 0 0 2639208 26312  0   0 24 42 42  0  0  0  0  0  0 1446 5102 2840
12 35 52

The box is an E-450 with 2 CPUs.  You'd think it was almost
over-powered...

Can anyone shed light on this?

2. Nothing will start..

3. poll/select in udprelay - anyone have poll.c(h) code for linux?

4. HTML documents?

5. hylafax, poll sending, poll server

6. Why is java so slow on a SPARC 10/30 running Java 1.2

7. Q: poll.h and poll()

8. closing ports

9. What are the Disadvantages of poll, /dev/poll

10. To POLL or Not To POLL the mouse

11. My Freebsd driver hangs in poll function after some time (problem with poll)

12. poll.h file and poll function

13. poll.h file and poll function not found