CHOLMOD slows down in parallel

Bug #1843277 reported by patrick
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
suitesparse (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

If I run a simple CHOLMOD C++ program, I noticed that it takes more time running in parallel than single threaded. For the attached program file I did

g++ -o main main.cpp /usr/lib/x86_64-linux-gnu/libcholmod.so

time ./main
-> real 2m21,367s user 11m30,913s sys 5m11,448s

(now I force it to be single threaded)
time OPENBLAS_NUM_THREADS=1 OMP_THREAD_LIMIT=1 ./main
-> real 0m49,684s user 0m48,922s sys 0m0,760s

Notice the huge "sys" time consumption in parallel run.

I have a 4 core / 8 thread Intel CPU running Ubuntu 18.04, everything up-to-date.
In my research project with a more complex matrix, the slow-down is the factor 8.

Further info: It is not machine-dependent. It is also confirmed in Debian 10 on several different machines.

Revision history for this message
patrick (patj-8) wrote :
description: updated
patrick (patj-8)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in suitesparse (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.