Re: Counting Python threads vs C/C++ threads

2019-07-21 Thread Peter J. Holzer
On 2019-07-16 12:48:33 -0700, Dan Stromberg wrote: > On Tue, Jul 16, 2019 at 11:13 AM Barry Scott wrote: > > Does top show the process using 100% CPU? > > > Nope. CPU utilization and disk use are both low. > > We've been going into top, and then hitting '1' to see things broken down > by CPU cor

Re: Counting Python threads vs C/C++ threads

2019-07-17 Thread Thomas Jollans
On 17/07/2019 09.58, Barry Scott wrote: > >> On 16 Jul 2019, at 20:48, Dan Stromberg wrote: >> >> >> >> A question arises though: Does threading.active_count() only show Python >> threads created with the threading module? What about threads created with >> the thread module? > Only pythons t

Re: Counting Python threads vs C/C++ threads

2019-07-17 Thread Barry Scott
> On 16 Jul 2019, at 20:48, Dan Stromberg wrote: > > > > On Tue, Jul 16, 2019 at 11:13 AM Barry Scott > wrote: > I'm going to assume you are on linux. > Yes, I am. Ubuntu 16.04.6 LTS sometimes, Mint 19.1 other times. > > On 16 Jul 2019, at 18:35, Dan Strombe

Re: Counting Python threads vs C/C++ threads

2019-07-16 Thread Dan Stromberg
On Tue, Jul 16, 2019 at 11:13 AM Barry Scott wrote: > I'm going to assume you are on linux. > Yes, I am. Ubuntu 16.04.6 LTS sometimes, Mint 19.1 other times. On 16 Jul 2019, at 18:35, Dan Stromberg wrote: > > > > I'm looking at a performance problem in a large CPython 2.x/3.x codebase > > with

Re: Counting Python threads vs C/C++ threads

2019-07-16 Thread Barry Scott
I'm going to assume you are on linux. On 16 Jul 2019, at 18:35, Dan Stromberg wrote: > > I'm looking at a performance problem in a large CPython 2.x/3.x codebase > with quite a few dependencies. > > I'm not sure what's causing the slowness yet. The CPU isn't getting hit > hard, and I/O on the

Counting Python threads vs C/C++ threads

2019-07-16 Thread Dan Stromberg
I'm looking at a performance problem in a large CPython 2.x/3.x codebase with quite a few dependencies. I'm not sure what's causing the slowness yet. The CPU isn't getting hit hard, and I/O on the system appears to be low - but throughput is poor. I'm wondering if it could be CPU-bound Python thr