0

Recently I'm studying the source code of NginX. I found it quite interesting while I'm curious about the memory management design, what's the concern when they define the size of NGX_POOL_ALIGNMENT and NGX_DEFAULT_POOL_SIZE? And why they have such memory alignment design?

I really hope somebody could give me some tips about those issues, and we can have further discussion if you're also interested in NginX implementation and willing to share your experience with me :D.

BTW, I'm reading NginX 1.2.3 which is the stable version stated by their team.

4

1 に答える 1

0

おそらくNginXの開発者に聞いてみるべきでしょう。私の推測では、彼らはただキャッシュライン(またはキャッシュラインの倍数)にものを揃えているだけだと思います。

明らかに、彼らはパフォーマンスのためにそれを行います。

于 2012-09-18T03:54:50.403 に答える