Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'case.': 0.05; 'context': 0.05; 'deprecated': 0.07; 'filing': 0.07; 'see:': 0.07; 'subject:ANN': 0.07; 'subject:released': 0.07; 'api': 0.09; 'url:blog': 0.09; '1.0.0': 0.09; '===': 0.09; 'enhancements': 0.09; 'reference:': 0.09; 'sockets': 0.09; 'url:googlecode': 0.09; 'bug': 0.10; 'advance.': 0.15; '0.6.0': 0.16; 'backward': 0.16; 'cwd': 0.16; 'deprecated.': 0.16; 'determining': 0.16; 'folks,': 0.16; 'introduces': 0.16; 'nevertheless': 0.16; 'osx': 0.16; 'received:209.85.161.174': 0.16; 'refactoring': 0.16; 'rewritten': 0.16; 'url:detail': 0.16; 'url:documentation': 0.16; 'url:gz': 0.16; 'url:issues': 0.16; 'url:tar': 0.16; 'usage,': 0.16; 'zabbix,': 0.16; 'basically': 0.17; 'pieces': 0.17; 'version.': 0.17; '>>>': 0.18; 'memory': 0.18; 'windows': 0.19; 'skip:p 30': 0.20; 'permission': 0.20; 'import': 0.21; 'dropped': 0.22; 'exceptions': 0.22; 'example': 0.23; 'errors': 0.23; '---': 0.26; 'skip:[ 10': 0.26; 'url:wiki': 0.26; 'errors.': 0.27; 'message- id:@mail.gmail.com': 0.27; 'actual': 0.28; 'cpu': 0.29; 'url:code': 0.29; 'source': 0.29; "i'm": 0.29; 'notes': 0.30; 'basic': 0.30; 'addresses': 0.32; 'raising': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'monitor': 0.33; 'another': 0.33; 'that,': 0.34; 'version': 0.34; 'received:google.com': 0.34; 'thanks': 0.34; 'requiring': 0.35; 'skip:l 30': 0.35; 'especially': 0.35; 'received:209.85': 0.35; 'next': 0.35; 'announce': 0.36; 'should': 0.36; 'skip:p 20': 0.36; 'does': 0.37; 'two': 0.37; 'why': 0.37; 'skip:v 20': 0.37; 'received:209': 0.37; 'far': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'release': 0.39; 'header:Received:5': 0.40; 'bottom': 0.60; 'skip:u 10': 0.60; 'further': 0.61; 'provide': 0.62; 'url:p': 0.63; 'details': 0.63; 'information': 0.63; 'more': 0.63; 'management': 0.65; 'percent': 0.65; 'url:6': 0.65; 'home': 0.66; 'pleased': 0.66; 'url:0': 0.67; 'physical': 0.69; 'user,': 0.69; 'introduce': 0.80; 'issues:': 0.84; 'url:items': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=0o606OypSHFYj4dNxtvaAUSCccjdcQb3Slxlwi80IRs=; b=R2MUi1GSKS8/kwDfRq4pgfpC4mAEBD5W75RudM8T8AVhfVresA/LM7ZSy0geA0H0Ss izXGBD7L3aIHsiWHx6TifJvTp+2c1v9Z2fV+zvCifaYlp/QxLQzeHURxzcBckZ19xKcV mf3nnYuGAZhDzPkj0eu0oIE67WXqjW3tlN7YenR0Ky82s8E9RXnc3FJu6RjfXeRAokgn 2YoR2nOgBbCFR0UkBG7UW3Z9tt7xDLiQnxaSwGoXPMSxOuuuXzVnKTpybUJBjxx2Kw8q z/qjblkZXWgVNcfD6x7OCTz8V8xzZhkWJg1OmXq8qvdf/HFbTpQo4bk0ge1TZ9+Aj26I sdrw== MIME-Version: 1.0 Date: Mon, 13 Aug 2012 16:06:54 +0200 Subject: ANN: psutil 0.6.0 released From: =?ISO-8859-1?Q?Giampaolo_Rodol=E0?= To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 136 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1344866817 news.xs4all.nl 6892 [2001:888:2000:d::a6]:60001 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:26990 Hi folks, I'm pleased to announce the 0.6.0 release of psutil: http://code.google.com/p/psutil/ This is one of the best releases so far as it addresses two important issues: system memory functions management and permission errors occurring on Windows and OSX. === Memory functions === psutil.phymem_usage() and psutil.virtmem_usage() are deprecated. Instead we now have psutil.virtual_memory() and psutil.swap_memory(), which should provide all the necessary pieces to monitor the actual system memory usage, both physical and swap/disk related. The refactoring was modeled after Zabbix, see: http://code.google.com/p/psutil/issues/detail?id=311 http://blog.zabbix.com/when-alexei-isnt-looking/#vm.memory.size http://www.zabbix.com/documentation/2.0/manual/appendix/items/vm.memory.size_params If you don't want to read how and why I did that, the bottom line is: if you want to monitor actual system memory usage in a cross platform fashion use: >>> psutil.virtual_memory().available === No more AccessDenied exceptions when querying processes === On Windows and OSX the Process methods below were always raising AccessDenied for any process owned by another user: OSX - name - get_memory_info() - get_memory_percent() - get_cpu_times() - get_cpu_percent() - get_num_threads() WINDOWS - create_time - get_children() - get_cpu_times() - get_cpu_percent() - get_memory_info() - get_memory_percent() - get_num_handles() - get_io_counters() Especially on OSX this made psutil basically unusable as a limited user, even for determining basic process information such as CPU percent or memory usage. Now this is no longer the case. For further details see: http://code.google.com/p/psutil/issues/detail?id=297 http://code.google.com/p/psutil/issues/detail?id=303 === Other major enhancements === - per-process extended memory stats. - per-process number of voluntary and involuntary context switches. - per-process connections: added UNIX sockets support. - (BSD) Process.get_connections() rewritten in C and no longer requiring lsof. - (OSX) added support for process cwd - psutil.network_io_counters() now provides the number of in/out packets dropped and with errors. - new example scripts: example/meminfo.py example/free.py example/netstat.py example/pmap.py === New features by example === >>> import psutil, os >>> p = psutil.Process(os.getpid()) >>> >>> p.get_num_ctx_switches() amount(voluntary=78, involuntary=19) >>> >>> p.get_ext_memory_info() meminfo(rss=9662464, vms=49192960, shared=3612672, text=2564096, lib=0, data=5754880, dirty=0) >>> >>> p.get_connections(kind='unix') [connection(fd=8, family=1, type=1, local_address='/tmp/unix_socket.sock', remote_address=None, status='')] >>> >>> >>> psutil.virtual_memory() vmem(total=8374149120L, available=2081050624L, percent=75.1, used=8074080256L, free=300068864L, active=3294920704, inactive=1361616896, buffers=529895424L, cached=1251086336) >>> >>> psutil.swap_memory() swap(total=2097147904L, used=296128512L, free=1801019392L, percent=14.1, sin=304193536, sout=677842944) >>> === Compatitility notes === 0.6.0 version does not introduce any backward incompatibility. Nevertheless it introduces some deprecations warnings: - psutil.phymem_usage() is deprecated in favor of psutil.virtual_memory() - psutil.virmem_usage() is deprecated in favor of psutil.swap_memory() - psutil.cached_phymem() is deprecated in favor of psutil.virtual_memory().cached - psutil.phymem_buffers() is deprecated in favor of psutil.virtual_memory().buffers The deprecated functions will be removed in next 1.0.0 version. === Links === * Home page: http://code.google.com/p/psutil * Source tarball: http://psutil.googlecode.com/files/psutil-0.6.0.tar.gz * Api Reference: http://code.google.com/p/psutil/wiki/Documentation Please try out this new release and let me know if you experience any problem by filing issues on the bug tracker. Thanks in advance. --- Giampaolo Rodola' http://code.google.com/p/pyftpdlib/ http://code.google.com/p/psutil/ http://code.google.com/p/pysendfile/