How to accout max_rss precisely