GithubHelp home page GithubHelp logo

nvidia-persistenced's Introduction

______________________________________________________________________________

NVIDIA-PERSISTENCED SOURCE DOCUMENTATION
______________________________________________________________________________

This document outlines the source code and build instructions for the NVIDIA
Persistence Daemon, nvidia-persistenced. Information on how to use 
nvidia-persistenced is available in the driver README and via the manpage that
is installed along with the driver or installed from this source package.

The daemon is controlled by an RPC interface that is generated by rpcgen. The
files have been pre-generated for this source package to remove any dependency
on rpcgen on the target system. The build otherwise only relies on the command
line utility m4 to generate the manpage documentation, aside from the standard
build tools.

To build nvidia-persistenced and its manpage, you can simply run:

    make

This will generate all output files within a system-specific subdirectory of
the '_out' directory.

To install nvidia-persistenced and its manpage, you can simply run:

    make install

There are also a few init files included in the source distribution that may
be used to start the NVIDIA Persistence Daemon on system startup. These files
are provided as examples and may not install correctly out of the box. Please
see init/README for more information.

nvidia-persistenced's People

Contributors

aaronp24 avatar dadap avatar liam-middlebrook avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nvidia-persistenced's Issues

Add IgnoreOnIsolate=true to the systemd unit

Consider adding IgnoreOnIsolate=true to the systemd unit. While this isn't entirely useful as operations such as "systemctl isolate rescue" would kill any user-space processing utilizing the GPU, this still creates parity with persistence mode since persistence mode is enabled while the kernel module is loaded and survives "systemctl isolate..." operations.

Release for 525.85.12

Hi,

I don't see a release for v525.85.12. Is there a reason why this version is not supported?

nvidia-persistenced.service doesn't start automatically on boot.

Hi, I work on AWS P3, Ubuntu 16.04, NVidia driver 410.79. My problem is that the service starts automatically only after some manual intervention / "touch" of the GPU (manual run of 'systemctl start nvidia-persistenced.service' or nvidia-smi). But the same configuration doesn't starts automatically on boot...
NVidia-persistence.service configuration file (placed in (/lib/systemd/system/nvidia-persistenced.service, configured with service enabling - I.e. relevant link is set from /etc/... to /lib/...) :
[Unit]
Description=NVIDIA Persistence Daemon
Wants=syslog.target
[Service]
Type=forking
Restart=always
ExecStart=/usr/bin/nvidia-persistenced --verbose -u nvidia-persistenced -g nvidia-persistenced
ExecStopPost=/bin/rm -rf /var/run/nvidia-persistenced
[Install]
WantedBy=multi-user.target

This is the output after reboot (without any manual intervention):
4:~$ systemctl status nvidia-persistenced.service
● nvidia-persistenced.service - NVIDIA Persistence Daemon
Loaded: loaded (/lib/systemd/system/nvidia-persistenced.service; enabled; vendor preset: enabled)
Active: inactive (dead)
Mar 03 13:47:27 ip-10-10-1-174 systemd[1]: Stopped NVIDIA Persistence Daemon.

After running nvidia-smi from command line - the status is below (service started automatically):

ubuntu@ip-10-10-1-174:~$ nvidia-smi
Sun Mar 3 13:54:34 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 410.79 Driver Version: 410.79 CUDA Version: 10.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Tesla V100-SXM2... On | 00000000:00:1E.0 Off | 0 |
| N/A 39C P0 36W / 300W | 0MiB / 16130MiB | 0% Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
ubuntu@ip-10-10-1-174:~$ systemctl status nvidia-persistenced.service
● nvidia-persistenced.service - NVIDIA Persistence Daemon
Loaded: loaded (/lib/systemd/system/nvidia-persistenced.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2019-03-03 13:54:34 UTC; 9s ago
Process: 1305 ExecStart=/usr/bin/nvidia-persistenced --verbose -u nvidia-persistenced -g nvidia-persistenced
Main PID: 1307 (nvidia-persiste)
Tasks: 1
Memory: 412.0K
CPU: 3ms
CGroup: /system.slice/nvidia-persistenced.service
└─1307 /usr/bin/nvidia-persistenced --verbose -u nvidia-persistenced -g nvidia-persistenced

Mar 03 13:54:34 ip-10-10-1-174 systemd[1]: Starting NVIDIA Persistence Daemon...
Mar 03 13:54:34 ip-10-10-1-174 nvidia-persistenced[1307]: Verbose syslog connection opened
Mar 03 13:54:34 ip-10-10-1-174 nvidia-persistenced[1307]: Now running with user ID 113 and group ID 117
Mar 03 13:54:34 ip-10-10-1-174 nvidia-persistenced[1307]: Started (1307)
Mar 03 13:54:34 ip-10-10-1-174 nvidia-persistenced[1307]: device 0000:00:1e.0 - registered
Mar 03 13:54:34 ip-10-10-1-174 nvidia-persistenced[1307]: device 0000:00:1e.0 - persistence mode enabled.
Mar 03 13:54:34 ip-10-10-1-174 nvidia-persistenced[1307]: device 0000:00:1e.0 - NUMA memory onlined.
Mar 03 13:54:34 ip-10-10-1-174 nvidia-persistenced[1307]: Local RPC services initialized
Mar 03 13:54:34 ip-10-10-1-174 systemd[1]: Started NVIDIA Persistence Daemon.

My question:
Can I start the service automatically, without any prior manual intervention?

nvidia-persistenced keeps it's username after remove

Hello.

in Ubuntu 13.04, when installing nvidia-persistenced, and removeing it agian.
it keeps the username "nvidia-persistenced-daemon" in the system and it doesn't remove it, this cause some problems when remastering the local system in some tools like Remastersys or Relinux.. because nvidia-persistenced uid is 999.

the fix is just to run this command automatically after package removal:
$ sudo userdel nvidia-persistenced

so, is there anyway to do this by default in nvidia-persistenced instead of doing it manually?

thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.