Giter VIP home page Giter VIP logo

Comments (5)

adiholden avatar adiholden commented on June 12, 2024

comparing new version of mimalloc 2.1.4 to 2.0.9 shows degradation in unaccounted memory

with 2.0.9
127.0.0.1:6379> DEBUG POPULATE 300000 JSON 100 RAND TYPE JSON ELEMENTS 100
OK
(2.28s)
127.0.0.1:6379> info memory

Memory

used_memory:6679902592
used_memory_human:6.22GiB
used_memory_peak:6679902592
used_memory_peak_human:6.22GiB
fibers_stack_vms:1637600
fibers_count:50
used_memory_rss:6743437312
used_memory_rss_human:6.28GiB
used_memory_peak_rss:6743437312
maxmemory:18635944755
maxmemory_human:17.36GiB
object_used_memory:4800000
type_used_memory_JSON:4800000
table_used_memory:16912128
num_buckets:30720
num_entries:300000
inline_keys:300000
listpack_blobs:0
listpack_bytes:0
small_string_bytes:0
pipeline_cache_bytes:0
dispatch_queue_bytes:0
dispatch_queue_subscriber_bytes:0
dispatch_queue_peak_bytes:0
client_read_buffer_peak_bytes:256
tls_bytes:0
cache_mode:store
maxmemory_policy:noeviction

with 2.1.4
127.0.0.1:6379> DEBUG POPULATE 300000 JSON 100 RAND TYPE JSON ELEMENTS 100
OK
(2.29s)
127.0.0.1:6379> info memory

Memory

used_memory:6366138816
used_memory_human:5.93GiB
used_memory_peak:6366138816
used_memory_peak_human:5.93GiB
fibers_stack_vms:1637600
fibers_count:50
used_memory_rss:7705546752
used_memory_rss_human:7.18GiB
used_memory_peak_rss:7705546752
maxmemory:17508161945
maxmemory_human:16.31GiB
object_used_memory:4800000
type_used_memory_JSON:4800000
table_used_memory:16912128
num_buckets:30720
num_entries:300000
inline_keys:300000
listpack_blobs:0
listpack_bytes:0
small_string_bytes:0
pipeline_cache_bytes:0
dispatch_queue_bytes:0
dispatch_queue_subscriber_bytes:0
dispatch_queue_peak_bytes:0
client_read_buffer_peak_bytes:256
tls_bytes:0
cache_mode:store
maxmemory_policy:noeviction

from dragonfly.

romange avatar romange commented on June 12, 2024

i suggest checking memory malloc-stats as well

from dragonfly.

adiholden avatar adiholden commented on June 12, 2024

microsoft/mimalloc#887

from dragonfly.

romange avatar romange commented on June 12, 2024

the issue with bigger block allocation, 18488 160 65120 65120 65120 - old vs
22132 184 65280 65280 62560 - new

from dragonfly.

romange avatar romange commented on June 12, 2024

One issue I found we have problems with mi_heap_malloc_aligned.

  1. 8 byte alignment should be a noop but in practice it can increase the effective size.
  2. with (size % alignment) == 0 we may also have the unjustifiable overhead.

This is not related to theversion update, but was discovered when checking for differences in used memory

from dragonfly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.