Fabio Buda
Fabio Buda

Reputation: 769

Does a tcp socket hungry program interfere with filesystem I/O

I'm using autobench to test performance of two different php scripts. Only one of them has some filesystem I/O.

The problem is that I can't run autobench on a different host than webserver so I fear my benchmarks could be wrong.

Does autobench (configured to open thousands of connection) interfere with filesystem I/O?

Upvotes: 1

Views: 125

Answers (2)

alk
alk

Reputation: 70903

Yes, as sockets and files both use file descriptors to represent themselfs if opened. And the number of file descriptors it limited.

Search man proc for file-max for details.

Upvotes: 1

Marko Kevac
Marko Kevac

Reputation: 2982

It interferes, of course. Place where these two programs collide is in linux kernel. Linux kernel can do limited quantity of system calls.

Upvotes: 0

Related Questions