question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Excessive cpu usage for np.unique

See original GitHub issue

Calling np.unique seems to result in > 100% cpu usage (no multiprocessing).

Reproducing code example:

import numpy as np

for _ in range(1000):
    arr = np.zeros((1024, 6144), dtype=np.uint16)
    np.unique(arr)

Error message:

htop shows ~3600% CPU usage.

Numpy/Python version information:

1.15.3 3.6.6 |Anaconda, Inc.| (default, Oct 9 2018, 12:34:16) [GCC 7.3.0]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:20 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
rgommerscommented, Oct 14, 2019

Rather than tagging an individual maintainer of Anaconda or Intel, it may be useful to open an issue on the correct tracker: https://github.com/ContinuumIO/anaconda-issues/issues. @njzjz it would be very helpful if you could do this and let us know so we can close this issue.

0reactions
mattipcommented, Dec 2, 2020

Closing the issue here, interested parties should follow the discussion on the open anaconda issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to overcome MemoryError of numpy.unique
Monitoring the memory and CPU usage doesn't show that the problems are related to RAM or CPU.
Read more >
Common Causes and Solutions to Excessive Resource Usage
Now that you have a basic understanding of server resources, we're going to cover common reasons a website is causing high CPU usage....
Read more >
How to Lower CPU Usage - NinjaOne
There are a few common fixes for high CPU load, some of which are Windows 10 specific, and others that work on nearly...
Read more >
CICS with JVM enabled is using excessive CPU when ... - IBM
Your CICS Transaction Server for z/OS (CICS TS) region is consuming large amounts of CPU for no apparent reason.
Read more >
Common Causes of Excessive CPU Usage - MY ROCHEN
A common misconception is that all websites are the same in terms of CPU/memory usage. This is not the case. For example, a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found