Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add glibc's function: malloc_stats #3596

Merged
merged 1 commit into from
Feb 28, 2024
Merged

Conversation

marxin
Copy link
Contributor

@marxin marxin commented Feb 25, 2024

The function is used to report stats about glibc's memory allocator to stderr:

Arena 0:
system bytes     = 1350406144
in use bytes     = 3725633952
Arena 1:
system bytes     = 1895907328
in use bytes     = 1653748608
Total (incl. mmap):
system bytes     =  277286912
in use bytes     = 2410356000
max mmap regions =         56
max mmap bytes   = 2876198912

The function is used to report stats about glibc's memory allocator to
stderr:

```
Arena 0:
system bytes     = 1350406144
in use bytes     = 3725633952
Arena 1:
system bytes     = 1895907328
in use bytes     = 1653748608
Total (incl. mmap):
system bytes     =  277286912
in use bytes     = 2410356000
max mmap regions =         56
max mmap bytes   = 2876198912
```
@rustbot
Copy link
Collaborator

rustbot commented Feb 25, 2024

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @JohnTitor (or someone else) some time within the next two weeks.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue

@JohnTitor JohnTitor added this pull request to the merge queue Feb 28, 2024
Merged via the queue into rust-lang:main with commit 3c30a03 Feb 28, 2024
41 checks passed
@marxin marxin deleted the add-malloc_stats branch February 29, 2024 09:06
@tgross35 tgross35 added the stable-nominated This PR should be considered for cherry-pick to libc's stable release branch label Nov 17, 2024
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Nov 17, 2024
The function is used to report stats about glibc's memory allocator to
stderr:

```
Arena 0:
system bytes     = 1350406144
in use bytes     = 3725633952
Arena 1:
system bytes     = 1895907328
in use bytes     = 1653748608
Total (incl. mmap):
system bytes     =  277286912
in use bytes     = 2410356000
max mmap regions =         56
max mmap bytes   = 2876198912
```

(backport <rust-lang#3596>)
(cherry picked from commit 78e6d62)
@tgross35 tgross35 mentioned this pull request Nov 17, 2024
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Nov 17, 2024
The function is used to report stats about glibc's memory allocator to
stderr:

```
Arena 0:
system bytes     = 1350406144
in use bytes     = 3725633952
Arena 1:
system bytes     = 1895907328
in use bytes     = 1653748608
Total (incl. mmap):
system bytes     =  277286912
in use bytes     = 2410356000
max mmap regions =         56
max mmap bytes   = 2876198912
```

(backport <rust-lang#3596>)
(cherry picked from commit 78e6d62)
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Nov 17, 2024
The function is used to report stats about glibc's memory allocator to
stderr:

```
Arena 0:
system bytes     = 1350406144
in use bytes     = 3725633952
Arena 1:
system bytes     = 1895907328
in use bytes     = 1653748608
Total (incl. mmap):
system bytes     =  277286912
in use bytes     = 2410356000
max mmap regions =         56
max mmap bytes   = 2876198912
```

(backport <rust-lang#3596>)
(cherry picked from commit 78e6d62)
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Nov 17, 2024
The function is used to report stats about glibc's memory allocator to
stderr:

```
Arena 0:
system bytes     = 1350406144
in use bytes     = 3725633952
Arena 1:
system bytes     = 1895907328
in use bytes     = 1653748608
Total (incl. mmap):
system bytes     =  277286912
in use bytes     = 2410356000
max mmap regions =         56
max mmap bytes   = 2876198912
```

(backport <rust-lang#3596>)
(cherry picked from commit 78e6d62)
@tgross35 tgross35 added stable-applied This PR has been cherry-picked to libc's stable release branch and removed stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review stable-applied This PR has been cherry-picked to libc's stable release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants