]> git.ipfire.org Git - thirdparty/squid.git/commit
Significantly reduced Large Rock (and slightly shared memory) RAM requirements
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 10 Apr 2014 04:56:25 +0000 (22:56 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 10 Apr 2014 04:56:25 +0000 (22:56 -0600)
commit636b913cdf2421ad1527aed11814b0c410f7bfd6
treebaf0c759622df9ee5b2e8ecd142e72441103331f
parent36c84e199a995f639a720362195bda49368c6a53
Significantly reduced Large Rock (and slightly shared memory) RAM requirements
by not allocating 40 (and 12) bytes of unused RAM per cache slot.

Rock: Stale code inherited from the Small Rock implementation allocated 40
bytes of unused memory per rock db slot (2.5GB of RAM for a 1TB disk with 16KB
db slots). The current (Large Rock) code stores the same kind of information
(and more) in a different location (Ipc::StoreMap).

Shared memory: Similarly, the Large Rock-based shared memory cache allocated
12 bytes of unused memory per shared memory cache slot (3.8MB of RAM for a
10GB shared RAM cache with 32KB slots).
src/MemStore.cc
src/fs/rock/RockSwapDir.cc