Date: Wed, 7 Jun 2006 18:27:24 -0400 From: Mikhail Teterin <mi+mx@aldan.algebra.com> To: current@freebsd.org Subject: getrusage() -- negative ru_maxrss?! Message-ID: <200606071827.24207.mi%2Bmx@aldan.algebra.com>
next in thread | raw e-mail | index | archive | help
Hello! I have a program, which uses getrusage() to report its own performance before exiting. I noticed recently, that the ru_maxrss field is sometimes reported negative -- I don't think, I ever saw this last year, for example... Is the field considered usable and (semi-)accurate, or did FreeBSD abandon it (as Solaris did)? I currently print it as: fprintf(..., "... used %ld Kb ...", ... ru.ru_maxrss*getpagesize()/1024... ); What's the right way to do it? -mi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606071827.24207.mi%2Bmx>