Skip to content

Conversation

@bitfaster
Copy link
Owner

Running the hit rate analysis Arc OLTP scenario causes a machine with 32gb ram to run out of memory and grind to a halt.

Introduce a different run order for large cache sizes to mitigate this. Running in dotMemory shows that MemoryCache is allocating a crazy amount of ValueTuples

image

Rough breakdown:
Blue: MemoryCache ~8.2 gb
Green: ConcurrentLfu ~102 mb
Yellow: ConcurrentLru ~43 mb
Red: ClassicLru ~71mb

ConcurrentLfu is allocating an Action on each drain: this should be cached.

@coveralls
Copy link

coveralls commented Nov 11, 2023

Coverage Status

coverage: 98.554%. remained the same
when pulling 62347c1 on users/alexpeck/hitratemem
into 0bc75e9 on main.

@bitfaster bitfaster merged commit 0588062 into main Nov 11, 2023
@bitfaster bitfaster deleted the users/alexpeck/hitratemem branch November 11, 2023 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants