Bug 28749 - Maximum RSS calculation incorrect
Summary: Maximum RSS calculation incorrect
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: time (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL: http://bugs.debian.org/cgi-bin/bugrep...
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-25 21:11 MSK by Dmitry Chistikov
Modified: 2013-04-19 00:11 MSK (History)
3 users (show)

See Also:


Attachments
test for GNU time (235 bytes, text/plain)
2013-03-25 21:11 MSK, Dmitry Chistikov
no flags Details
test for GNU time (235 bytes, text/plain)
2013-03-25 21:13 MSK, Dmitry Chistikov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Chistikov 2013-03-25 21:11:22 MSK
Created attachment 5788 [details]
test for GNU time

Мой коллега обнаружил, что GNU time в Debian неправильно определяет maximum RSS (см. ссылку). Бага воспроизводится и у нас; насколько удалось нагуглить, некоторые дистрибутивы ее обнаруживали и исправляли, а вот апстрим, похоже, уже не больно-то жив. Патч, насколько я понимаю, практически прямолинеен (см. объяснения по ссылке).

[altlinux@localhost ~]$ gcc -std=c99 -O0 test-time.c 
[altlinux@localhost ~]$ /usr/bin/time ./a.out 
0.00user 0.00system 0:00.00elapsed 88%CPU (0avgtext+0avgdata 5472maxresident)k
0inputs+0outputs (0major+379minor)pagefaults 0swaps

(4MB вместо 1MB, далее точно так же 8MB вместо 2MB с #define NUM 2)
Comment 1 Dmitry Chistikov 2013-03-25 21:13:05 MSK
Created attachment 5789 [details]
test for GNU time
Comment 2 Repository Robot 2013-04-19 00:11:03 MSK
time-1:1.7-alt3 -> sisyphus:

* Thu Apr 18 2013 Dmitry V. Levin <ldv@altlinux> 1:1.7-alt3
- Merged two fixes from Fedora (closes: #28749).
- Built with LFS support enabled.