CARVIEW |
Select Language
HTTP/2 200
date: Thu, 24 Jul 2025 18:16:08 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"851fd19690c2a1325aea33c6ea0762bf"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=g9Hn0iewcp75eD6VaS0O1P2elXlIj%2BtPJciq5EnEihIPJ0W4YCwNvHd5TqklCW2u16VgDMKJCtm0eYNUTPNrdlCOFRn6wjZFYkl9LZi0tFXcjcWDxIofbd5%2FbI8VM%2F%2F3HzFYOxJgRge6EZYP7An%2FDEnjCbIMxWm%2BJpC4JuGrmdwSzOxQPjc37sgMjGbO7HG4cU5Amru3Pdkor%2BkpRowbfdi%2F2vp%2BbWh3lJZg214Prk3h6PNt2zlV56%2B1qC%2BDZYxUcBkv%2FppWKgwYyZMNmn4rxQ%3D%3D--K2at9gl3OE27ZSZ%2B--NKv8TmydzXqEcbTjqIi3ag%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1036875216.1753380968; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 18:16:08 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 18:16:08 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 8522:B426E:10063C:132491:68827868
GitHub - kuszmaul/SuperMalloc: A Super Fast Multithreaded malloc() for 64-bit Machines
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 38
A Super Fast Multithreaded malloc() for 64-bit Machines
License
kuszmaul/SuperMalloc
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
To build for release cd release make make check You get two libraries in release/lib libsupermalloc.so requires transactional memory (haswell) libsupermalloc_pthread.so uses pthread locks I plan to add a runtime check and have only one library and an enviroment variable in the future. ------ You should also build and check with the internal testing code enabled. It's a different library partly because of link-time optimization. Also, if you want things easier to compile. There are two differences, we enable the TESTING flag (which includes a bunch of code that can be compiled) and we set -O0. cd debug make check ------- To run code coverage cd coverage make check ------- At top level you can do make clean make make check ------- Installing jemalloc-3.6.0 cd jemalloc-3.6.0 ./configure --prefix=/home/bradley/bmalloc/jemalloc make make install ----- Some basic results (4 threads a_count=1000000) rss time glibc 388752 11.16 ( 9.1 user) bmalloc 168372 11.92 (15.74 user)) hoard 313284 8.12 ( .79 user) [bradley@30-87-232 benchmarks]$ time ./server currentrss=1760 ....................................................................................................................................................................................................................................................Total_size_for_this_thread=31167784 Total_size_for_this_thread=27727126 Total_size_for_this_thread=27341095 Total_size_for_this_thread=30455573 a=978167 d=0, a=992335 d=0, a=992071 d=0, a=1000002 d=0, thread sum =27727126 thread sum =27341095 thread sum =31167784 thread sum =30455573 before deleting: currentrss=388752KiB currentrss=388752KiB maxrss=388752KiB real 0m11.164s user 0m9.103s sys 0m0.753s [bradley@30-87-232 benchmarks]$ time ./server-bmalloc currentrss=1760 .....................................................................................................................................................................................................................................................Total_size_for_this_thread=28812487 Total_size_for_this_thread=27312814 Total_size_for_this_thread=34281324 Total_size_for_this_thread=26775209 a=986246 d=0, a=992280 d=0, a=989159 d=0, a=1000002 d=0, thread sum =34281324 thread sum =26775209 thread sum =27312814 thread sum =28812487 before deleting: currentrss=168372KiB currentrss=168372KiB maxrss=168372KiB real 0m11.920s user 0m15.747s sys 0m0.362s [bradley@30-87-232 benchmarks]$ LD_PRELOAD=/home/bradley/projectlocker/svn/bradleycvs/bmalloc/benchmarks/Hoard/Hoard/src/libhoard.so time ./server currentrss=1616 ...................................................................................................................................................................................................................................................Total_size_for_this_thread=28307684 Total_size_for_this_thread=30499216 Total_size_for_this_thread=27597824 Total_size_for_this_thread=30854142 a=1000002 d=0, a=984035 d=0, a=977496 d=0, a=980520 d=0, thread sum =28307684 thread sum =30499216 thread sum =27597824 thread sum =30854142 before deleting: currentrss=313284KiB currentrss=313284KiB maxrss=313284KiB 8.12user 0.79system 0:10.86elapsed 82%CPU (0avgtext+0avgdata 313588maxresident)k 0inputs+0outputs (0major+77778minor)pagefaults 0swaps
About
A Super Fast Multithreaded malloc() for 64-bit Machines
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
You can’t perform that action at this time.