неделя, 10 декември 2017 г.

How to monitor what's using the GPU

Something very funny since I'm using my GPU for holiday mining. When I run calculation on Maple, my GPU falls dramatically. Which I find very odd. It shouldn't be like this at all - I have enough cores to and RAM to rum CPU calculation together with GPU one.
So anyway, here's how you find what's using your GPU:
$fuser -v /dev/nvidiactl
It shows just the ethminer for me. You can do also:
$fuser -v /dev/nvidia*
if you want to see all the nvidia stuff.

Some other useful commands (source):
lspci -vnnn | perl -lne 'print if /^\d+\:.+(\[\S+\:\S+\])/' | grep VGA
this shows which is your active VGA controller.
Other things:
nvidia-settings
doesn't appear to work on my system. Claims I don't have the nvidia xdriver.
This one:
sudo lshw -C display
shows the two controllers.
A very cool more complicated command:
sudo lspci  -v -s  $(sudo lspci | grep ' VGA ' | cut -d" " -f 1)
will give you a lot  of info on your main VGA.
I think I have mentioned here already the
$nvidia-smi
A cool thing is also to use Chrome and about:gpu where you can find all kinds of info. 

събота, 2 декември 2017 г.

How to reset nvidia card without reboot

That actually worked great and as far as I can see din't affect anything on my working X:
############
$./ethminer --list-devices
 ✘  12:51:37|ethminer  No OpenCL platforms found
 ✘  12:51:37|ethminer  CUDA error: unknown error
$sudo rmmod nvidia-modeset
rmmod: ERROR: Module nvidia_modeset is in use by: nvidia_drm
$sudo rmmod nvidia-uvm
$sudo rmmod nvidia-modeset
rmmod: ERROR: Module nvidia_modeset is in use by: nvidia_drm
$sudo rmmod nvidia_drm
$sudo rmmod nvidia-modeset
$./ethminer --list-devices
Listing OpenCL devices.
FORMAT: [platformID] [deviceID] deviceName
[0] [0] GeForce GT 750M
       CL_DEVICE_TYPE: GPU
       CL_DEVICE_GLOBAL_MEM_SIZE: 4235001856
       CL_DEVICE_MAX_MEM_ALLOC_SIZE: 1058750464
       CL_DEVICE_MAX_WORK_GROUP_SIZE: 1024

Listing CUDA devices.
FORMAT: [deviceID] deviceName
[0] GeForce GT 750M
       Compute version: 3.0
       cudaDeviceProp::totalGlobalMem: 4235001856

############3

понеделник, 27 ноември 2017 г.

How to stop browser notifications

In Firefox do:
about:config
And set to false those two entries:
dom.webnotifications.enabled  
dom.webnotifications.serviceworker.enabled 

In Chrome:
Settings -> Advanced Settings ->  “Do not allow any site to show notifications”.
Opera:
Settings ->  Websites -> Notifications ->
“Do not allow any site to show notifications”.