<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#ffffff">
<font size="-1"><font face="LiHei Pro">I got the memory leak error on
my linux server when I added 'aio on;' in my nginx.conf,<br>
The os is fedora 11</font></font><font size="-1"><font face="LiHei Pro">(x86-64)</font></font><font
 size="-1"><font face="LiHei Pro"> and gentoo(x86-64),The kernel is
2.6.29+.<br>
I've already set 'directio 2m; sendfile on; ' into nginx.conf.<br>
The server is only serving static flv contents, </font></font><font
 size="-1"><font face="LiHei Pro">These is </font></font><font
 size="-1"><font face="LiHei Pro">50-100MBytes each flv file. <br>
<br>
When 'aio on' is setting, the server's 4G memory and 2G swap were
consumed by nginx, work_processes just 4.<br>
When I disable aio, each nginx processes used 30M memory only.<br>
<br>
When aio is used, I know it should disable sendfile and use directio,
Why it use so many memory?<br>
<br>
<br>
</font></font>
</body>
</html>