Hi, I am wondering how to get the rss high-watermark of a process on its exit under Solaris (10 or later).
Well, I can sample /proc/... periodically during the runtime of the observed process. This is 1) ultra ugly and 2) very unrealiable for short running processes. The historic program 'memtime' does exactly this. Under some BSDs 'struct rusage' contains this information; thus one could use for example 'wait[34]()' on these systems to get the rss high-watermark during the process lifetime. IIRC AIX and HP-UX set the field ru_maxrss in 'struct rusage', too. Linux and Solaris don't set ru_maxrss at the moment. Under Linux I can use instead the TASKSTATS/CONFIG_TASK_XACCT kernel interface to get the rss high-watermark. But what is the Solaris-way to get this information? Is it possible to use dtrace? Best regards Georg Sauthoff _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
