fsync()-in webdav PUT

Nagy, Attila bra at fsn.hu
Mon Mar 5 10:29:36 UTC 2018


On 03/04/2018 12:45 PM, Reinis Rozitis wrote:
>> That's what really kills performance, because of the async nature of
>> nginx. That's why I'm proposing an option to do the fsync at the end of
>> the PUT (or maybe even the whole operation) in a thread(pool).
> Then again this way you make it again "asynchronous" (since it is/could be waiting in some thread/pool (forever)).
Jesus, why? You start the fsync in a thread and you wait for it to be 
completed with the HTTP response. Until this happens, the main thread 
can service other requests.
Have you ever seen an async program which uses threads to run blocking 
operations?



More information about the nginx mailing list