leftkwik.blogg.se

Linux kernel tuning
Linux kernel tuning











linux kernel tuning

During this TIME_WAIT state, reopening the connection to the client costs less than establishing a new connection. TCP_FIN_TIMEOUT - This setting determines the time that must elapse before TCP/IP can release a closed connection and reuse its resources. Other kernel settings that help with the overall server performance when it comes to network traffic are the following: To make persistent changes to the kernel settings described bellow, add the entries to the /etc/nf file and then run "sysctl -p" to apply. Finally the kernel handles the soft interrupt and moves the packet up the TCP/IP stack for decapsulation and puts it in a receive buffer for a process to read from. The kernel in turn handles the interrupt and raises a soft interrupt to process the packet.Ĩ. On the other end of the communication channel the NIC receives the frame, copies it on the receive buffer and raises a hard interrupt.ħ. The NIC sends the data and raises a hardware interrupt.Ħ.

LINUX KERNEL TUNING DRIVER

The NIC driver then pops the PDU from the transmit queue and copies it to the NIC.ĥ. The PDU is then moved onto the per-device transmit queue.Ĥ. The kernel encapsulates the data into a PDU - protocol data unit.ģ. The application first writes the data to a socket which in turn is put in the transmit buffer.Ģ. With that in mind, here's a quick overview of the steps taken during data transmission and reception:ġ.

linux kernel tuning

For the most part, the kernel is smart enough to detect and adjust certain TCP options after boot, or even dynamically, e.g the Sliding Window size etc. As with any other post on the subject, make sure you test before and after you make an adjustment to have a measurable, quantitative result.

linux kernel tuning

The aim of this post is to point out potential kernel tunables that might improve network performance in certain scenarios.













Linux kernel tuning