<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/psutil.git/psutil/arch, branch malloc-info</title>
<subtitle>github.com: giampaolo/psutil.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/'/>
<entry>
<title>#1901 / macOS: better err msg on proc_pidinfo()</title>
<updated>2021-01-06T15:01:05+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2021-01-06T15:01:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=f95276d744dee12a237d1a3f2836f36340c6abc0'/>
<id>f95276d744dee12a237d1a3f2836f36340c6abc0</id>
<content type='text'>
Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>provide debug info in case of error for getloadavg() on Windows.</title>
<updated>2020-12-30T09:57:35+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2020-12-30T09:57:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=51eb1dae7bf96dcc7dae51641d5770fd0d99d0ac'/>
<id>51eb1dae7bf96dcc7dae51641d5770fd0d99d0ac</id>
<content type='text'>
See: https://github.com/nicolargo/glances/issues/1780

Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
See: https://github.com/nicolargo/glances/issues/1780

Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>FreeBSD: move CPU C functions in their own cpu.c module</title>
<updated>2020-12-24T00:15:24+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2020-12-24T00:15:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=8f7826cb7d6ce35ecb2a681a4fca09fb5a71668f'/>
<id>8f7826cb7d6ce35ecb2a681a4fca09fb5a71668f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>rename C fun</title>
<updated>2020-12-21T22:33:33+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2020-12-21T22:33:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=88a017345616cacf718c76980821d26b448f730a'/>
<id>88a017345616cacf718c76980821d26b448f730a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor macOS CPU code (#1896)</title>
<updated>2020-12-21T21:53:56+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2020-12-21T21:53:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=03211cf6b1ec529c8e6cb4b528658547a01d645b'/>
<id>03211cf6b1ec529c8e6cb4b528658547a01d645b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename cpu_count_physical() to cpu_count_cores()</title>
<updated>2020-12-21T00:20:18+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2020-12-21T00:20:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=a4c0a0eb0d2a872ab7a45e47fcf37ef1fde5b012'/>
<id>a4c0a0eb0d2a872ab7a45e47fcf37ef1fde5b012</id>
<content type='text'>
This has always been cause of confusion, e.g. see:
https://github.com/giampaolo/psutil/pull/1727#issuecomment-698934643

Removed the reference to "physical" from dostrings, functions and test.
I still left it in the doc though, as it's more explanatory.

Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This has always been cause of confusion, e.g. see:
https://github.com/giampaolo/psutil/pull/1727#issuecomment-698934643

Removed the reference to "physical" from dostrings, functions and test.
I still left it in the doc though, as it's more explanatory.

Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[macOS, UNIX] prefer _SC_PAGESIZE over (partially) deprecated getpagesize() (#1891)</title>
<updated>2020-12-17T17:59:13+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2020-12-17T17:59:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=6bdde37049ba9fae31ccf83620468f77a6b9f396'/>
<id>6bdde37049ba9fae31ccf83620468f77a6b9f396</id>
<content type='text'>
Add a reusable `psutil_getpagesize()` utility common to all UNIXes.

Related to #1885 (`getpagesize()` is deprecated on recent macOS, POSIX.1-2001 and possibly other UNIXes).

The problem emerged on macOS but `getpagesize()` is also used in FreeBSD, NetBSD, OpenBSD and AIX, so it makes sense to do this in one place only, similarly to Windows which also provide a `psutil_getpagesize()` utility.

Follow cPython's `mmapmodule.c` and `resourcemodule.c` lead and rely on `sysconf(_SC_PAGESIZE)` instead, but leave `getpagesize()` in place as last resort/attempt for systems where it's not deprecated and/or they still legitimately rely on it.

Also provide a python wrapper so we can test the return value of this C function against Python's stdlib modules.

Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a reusable `psutil_getpagesize()` utility common to all UNIXes.

Related to #1885 (`getpagesize()` is deprecated on recent macOS, POSIX.1-2001 and possibly other UNIXes).

The problem emerged on macOS but `getpagesize()` is also used in FreeBSD, NetBSD, OpenBSD and AIX, so it makes sense to do this in one place only, similarly to Windows which also provide a `psutil_getpagesize()` utility.

Follow cPython's `mmapmodule.c` and `resourcemodule.c` lead and rely on `sysconf(_SC_PAGESIZE)` instead, but leave `getpagesize()` in place as last resort/attempt for systems where it's not deprecated and/or they still legitimately rely on it.

Also provide a python wrapper so we can test the return value of this C function against Python's stdlib modules.

Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[Windows] giveup with AD for all NtWow64 API calls (query 64-bit process from 32-bit) (#1888)</title>
<updated>2020-12-14T21:03:32+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2020-12-14T21:03:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=a6e5e3cf959d803e0dbabd9eade8959bab086ee3'/>
<id>a6e5e3cf959d803e0dbabd9eade8959bab086ee3</id>
<content type='text'>
On Windows, cmdline(), cwd() and environ() use some complex logic to query a 64 bit process from a 32 bit one by using NtWow64* APIs which may randomly file with:

[Error 0] The operation completed successfully
[Error 998] Invalid access to memory location
possibly others
Since this happens randomly and it's unclear how to do this properly, this PR turns any error from NtWow64* APIs into AccessDenied.

Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On Windows, cmdline(), cwd() and environ() use some complex logic to query a 64 bit process from a 32 bit one by using NtWow64* APIs which may randomly file with:

[Error 0] The operation completed successfully
[Error 998] Invalid access to memory location
possibly others
Since this happens randomly and it's unclear how to do this properly, this PR turns any error from NtWow64* APIs into AccessDenied.

Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[Windows] #1877: turn OpenProcess -&gt; ERROR_SUCCESS into AD or NSP (#1887)</title>
<updated>2020-12-14T19:27:47+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2020-12-14T19:27:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=b6699b41e2c4873deac532e925561686bdb827d5'/>
<id>b6699b41e2c4873deac532e925561686bdb827d5</id>
<content type='text'>
Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[macOS] EIO error occurring on cmdline() and environ (#1886)</title>
<updated>2020-12-13T23:46:18+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2020-12-13T23:46:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=6ea12c3c0a93b1370a1db2670cda60eadbf618dd'/>
<id>6ea12c3c0a93b1370a1db2670cda60eadbf618dd</id>
<content type='text'>
See: https://github.com/nicolargo/glances/issues/1769

Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
See: https://github.com/nicolargo/glances/issues/1769

Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;</pre>
</div>
</content>
</entry>
</feed>
