[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: maxrss using wrong unit in time
From: "Wesley Moore" <wes () wezm ! net>
Date: 2023-12-20 7:20:25
Message-ID: 5759a62d-ca92-4410-b93a-e1142b501f19 () app ! fastmail ! com
[Download RAW message or body]
Hi folks,
Just thought I'd draw your attention to this bug since I think I've found the cause:
https://bugs.busybox.net/show_bug.cgi?id=15751
It seems that `time` is treating the the `ru_maxrss` value as a count of pages[1][2] \
but it's already in kilobytes[3]:
> ru_maxrss (since Linux 2.6.32)
> This is the maximum resident set size used (in kilobytes).
Regards,
Wes
[1]: https://git.busybox.net/busybox/tree/miscutils/time.c#n125
[2]: https://git.busybox.net/busybox/tree/miscutils/time.c#n284
[3]: https://man7.org/linux/man-pages/man2/getrusage.2.html
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic