Skip to content

Cache size and estimated number of entries #91

@joanbalaguero

Description

@joanbalaguero

Hi Arthur,

One question about cache size and entries.

I have a cache of 12,288Mb size (12GB). Applying your formula (mem ≈ 49 * next_power_of_two( N * (1 + ghost) ) with N number of estimated entries and ghost allocation = 0), and if I'm not wrong, the estimated number of entries would be 134,217,728

So I apply these 2 settings when I build the cache and let it run for hours. Then, I see this in my log:

cache = [ entries: 211227840 / 134217728, weight: 12884898240 / 12884901888 ]

As you can see, the weight is respected, but the number of entries is much higher (211227840) than the estimated (134217728).

Maybe am I wrong computing the number of entries? Or quick cache is just limiting the cache growing by size, not by number of entries?

If number of entries is just an estimation for you, and I'm giving a wrong estimation (134217728 is much fewer than 211227840), will this provoke any kind of performance issues?

Thanks,
Joan.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions