Score:1

Does Nginx aio work with linux?

cc flag

We have a VOD service and we are using nginx as webserver.

Our system doesn't use nginx-vod-module instead it just has all the small m4s files for a dash stream.

I came across this article(Thread Pools in NGINX Boost Performance 9x) by Valentin Bartenev.

It says that enabling aio in nginx might be a good solution for reducing io wait and load.

but it says:

A good example here is FreeBSD. Unfortunately, we can’t say the same about Linux. Although Linux provides a kind of asynchronous interface for reading files, it has a couple of significant drawbacks.

then I came across this question and this answer:

AIO on Linux is horribly broken by design. Nginx supports it, but you probably don't want to use it since you can't use the disk cache at the same time.

but those were for more than 5 years ago. I wanted to know since our OS is linux and we have a lot of basically random requests for any of the files is enabling aio any good? or running more nginx worker processes per core might perform better on linux?

John Mahowald avatar
cn flag
What problem are you solving? How are your web servers not meeting your performance targets? What performance tuning have you already done, show your configuration.
Mojtaba avatar
cc flag
our current problem is that we reach max io usage. so our current solution is just buying loads and loads of ssd to meet the io requirements. but in the article that was linked in the question they reached a 10gbps using HDD hard drives.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.