logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: send&receive buffers
Author
mrdj1024



Joined: 03 Apr 2023
Posts: 37
Location: Bridgeton,NJ,USA

PostPosted: Fri 02 Jun '23 20:06    Post subject: send&receive buffers Reply with quote

hello Smile
got a question about the buffer sizes
my download speed is over 100 mbps and so is upload speed.
i have my send and receive buffers set to 2 MB each
inside my network adapter settings my transmit buffer is 128(max)
my receive buffer is 512(max)
i cannot push the settings inside my adapter settings higher.
so will apache use the 2 mbs for each buffer overriding the adapter settings?
and is 2 mb too high for each setting?
my adapter is realtek pcie gbe family controller using the latest driver.
windows 10 home os
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7322
Location: Germany, Next to Hamburg

PostPosted: Mon 05 Jun '23 8:40    Post subject: Reply with quote

Are you talking about BufferSize[1] ?? if yes it makes no sense to use it for that purpose.

Quote:
Under certain circumstances, content generators might create content in small chunks. In order to promote memory reuse, in memory chunks are always 8k in size, regardless of the size of the chunk itself. When many small chunks are generated by a request, this can create a large memory footprint while the request is being processed, and an unnecessarily large amount of data on the wire. The addition of a buffer collapses the response into the fewest chunks possible.



[1] https://httpd.apache.org/docs/2.4/mod/mod_buffer.html#buffersize
Back to top
mrdj1024



Joined: 03 Apr 2023
Posts: 37
Location: Bridgeton,NJ,USA

PostPosted: Mon 05 Jun '23 15:24    Post subject: Reply with quote

thanks for the reply,was talking about these buffers
https://httpd.apache.org/docs/2.4/mod/mpm_common.html#receivebuffersize
https://httpd.apache.org/docs/2.4/mod/mpm_common.html#sendbuffersize
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7322
Location: Germany, Next to Hamburg

PostPosted: Tue 06 Jun '23 11:15    Post subject: Reply with quote

Yes, the default value uses the OS / Windows values from your network card.

Also, the send buffer works only with static files.
IMHO leave the settings as is.
Back to top


Reply to topic   Topic: send&receive buffers View previous topic :: View next topic
Post new topic   Forum Index -> Apache