...
If your application using bsr is write-intensive and has frequent writes of small size, it is recommended to increase the activity log size. Otherwise, metadata updates will occur frequently and write performance may suffer. The default is 6001following is an example of expanding the AL size to 65001.
Code Block |
---|
>bsradm create-md --al-stripe-size-kB 288 r0
...
>bsradm dump-md r0
...
al-stripe-size-4k 72;
... |
Specify al-extents and congestion-extents.
Code Block |
---|
resource <resource> { disk { al-extents 6001extents 65001; ... } ... net { congestion-extents 58501; # 90% of the al-extents } } |
sndbuf-size
The transmission buffer implements the optimization of the transmission amount through buffering. Since TCP/IP transmission is an ACK-based protocol, the more the segment is transmitted, the greater the protocol overhead. Therefore, from a network transmission perspective, it is advantageous to collect and send as much data as possible when sending data. Since the transmit buffer implements this part, optimization can be achieved naturally. In particular, in a situation in which a small amount of data is continuously transmitted, the amount of data can be greatly improved by collecting and sending the data to the transmission buffer queue for a certain amount. You should consider optimizing with sndbuf-size in the following situations:
...
Disable TCP Delayed ACK
In particular, delayed Delayed ACK, which is a basic property of TCP in Windows, helps to optimize transmission by waiting for a certain amount of time when sending an ACK response from the receiving end, and then collecting and processing it at a time. However, this property has a bad effect on latency and should be disabled. The following command disables this option on the network interface, which can be controlled on a per-resource basis in bsrbandwidth but has a bad effect on delay time, so it should be disabled manually. When bsr is first installed, this is automatically performed by a script during the installation process, but if the LAN card is replaced later, this task must be performed manually again.
The following is a command to disable Delayed Ack for a network interface. Specify the interface by IP address or guid.
Code Block |
---|
bsrcon /nodelayedack |
...
<ip address|interface guid> |
This command is for Windows only. It sets TCP option values in the Windows registry and applies the contents to the network interface. You can check the registry contents in the path below to see if this option has been applied properly.
...