Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

100% CPU usage #14

Open
Ape opened this issue Apr 6, 2018 · 2 comments
Open

100% CPU usage #14

Ape opened this issue Apr 6, 2018 · 2 comments

Comments

@Ape
Copy link

Ape commented Apr 6, 2018

I got vramfs working nicely, but it continuously uses 100% CPU (one core) after I write something to the filesystem.

Here is a stack trace of the running thread:

#0  0x00007ffff6bb3a87 in sched_yield () from /usr/lib/libc.so.6
#1  0x00007ffff589a15f in ?? () from /usr/lib/libnvidia-opencl.so.1
#2  0x00007ffff59a4ca0 in ?? () from /usr/lib/libnvidia-opencl.so.1
#3  0x00007ffff6e9408c in start_thread () from /usr/lib/libpthread.so.0
#4  0x00007ffff6bcbe7f in clone () from /usr/lib/libc.so.6
@Overv
Copy link
Owner

Overv commented Apr 8, 2018

Does your OpenCL installation work with other demos?

@Theldus
Copy link

Theldus commented Dec 17, 2021

Hi,
the exact same thing happens to me (and OpenCL works fine with other applications).
I could see that:

  • The 100% of CPU usage depends on the file size and goes away after a while: if few megabytes, it is imperceptible, if 50MB, lasts a few seconds, if 512MB lasts 1 minute and a half until CPU usage drops from 100% to 0%.
  • This happens not only in writing, but in reading as well.
  • GPU usage seems low while CPU usage remains at 100% (monitored with watch -n0,5 "nvidia-settings -q GPUUtilization -q useddedicatedgpumemory")
  • dd returns almost immediately (less than 0.5s for 512M), although CPU usage remains high for quite some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants