Welcome! Log In Create A New Profile

Advanced

Re: different Memory consumption for H1 and H2

Maxim Dounin
May 15, 2017 08:38AM
Hello!

On Sat, May 13, 2017 at 12:02:13PM +0800, Muhui Jiang wrote:

> Thanks for your great answer. you mentioned that sendfile() is to copy
> between kernel space and userland. I am curious, why this whole process
> don't need to malloc any memory? Could you please explain more on the
> detail implementation of the sendfile(). Many Thanks

No, I said that sendfile() avoids copying between kernel space and
userland. The sendfile() system call is to send a file to a
socket. As such, it allows nginx to simply open the file
requested by a client and then call sendfile() to instruct OS to
transfer it to the socket.

--
Maxim Dounin
http://nginx.org/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

different Memory consumption for H1 and H2

Muhui Jiang May 11, 2017 10:34AM

Re: different Memory consumption for H1 and H2

Maxim Dounin May 11, 2017 11:12AM

Re: different Memory consumption for H1 and H2

Muhui Jiang May 13, 2017 12:04AM

Re: different Memory consumption for H1 and H2

Maxim Dounin May 15, 2017 08:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 143
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready