Apache a sendfile
Jan Kasprzak
kas na fi.muni.cz
Středa Květen 30 18:06:41 CEST 2007
Zdravim,
snazim se pred zverejnenim Fedory 7 vyoptimalizovat Apache tak,
aby pokud mozno prenasel velke soubory pres sendfile(2), ale mam s tim
nejaky problem: podle strace toho Apache moc neprenese a sendfile()
se stejne vola po malych kouscich - tady je kus strace -tt:
18:05:02.388711 sendfile(11, 12, [425122920], 3100072856) = 195480
18:05:02.388951 poll([{fd=11, events=POLLOUT, revents=POLLOUT}], 1, 120000) = 1
18:05:02.391883 sendfile(11, 12, [425318400], 3099877376) = 195480
18:05:02.392159 poll([{fd=11, events=POLLOUT, revents=POLLOUT}], 1, 120000) = 1
18:05:02.395060 sendfile(11, 12, [425513880], 3099681896) = 195480
18:05:02.395279 poll([{fd=11, events=POLLOUT, revents=POLLOUT}], 1, 120000) = 1
18:05:02.398020 sendfile(11, 12, [425709360], 3099486416) = 195480
18:05:02.398253 poll([{fd=11, events=POLLOUT, revents=POLLOUT}], 1, 120000) = 1
18:05:02.401230 sendfile(11, 12, [425904840], 3099290936) = 195480
18:05:02.401456 poll([{fd=11, events=POLLOUT, revents=POLLOUT}], 1, 120000) = 1
18:05:02.404867 sendfile(11, 12, [426100320], 3099095456) = 195480
18:05:02.405033 poll([{fd=11, events=POLLOUT, revents=POLLOUT}], 1, 120000) = 1
Pritom kdyz podobne strace pustim na proftpd, tak tam je videt,
ze proftpd par minut visi v tom sendfile() a za tu dobu odvysila treba
cely ISO image CDcka. Funguje vam nekomu sendfile() v Apache lepe nez
u me?
Diky,
-Y.
--
| Jan "Yenya" Kasprzak <kas at {fi.muni.cz - work | yenya.net - private}> |
| GPG: ID 1024/D3498839 Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
| http://www.fi.muni.cz/~kas/ Journal: http://www.fi.muni.cz/~kas/blog/ |
> I will never go to meetings again because I think face to face meetings <
> are the biggest waste of time you can ever have. --Linus Torvalds <
Další informace o konferenci Linux