Sessão xorg duplicada criada no Ubuntu 18.04 com drivers da Nvidia

2

Eu recentemente fiz duas novas instalações do Ubuntu 18.04 em sistemas similares. A única diferença é a execução de uma GTX 1070 e a outra GTX 1080.

Problema

Depois de instalar o driver da Nvidia (390,59 do binário), uma sessão xorg duplicada é criada toda vez após a reinicialização. Um em execução na minha conta de usuário (1000) e outro em execução na conta de usuário (120, adivinhando uma conta de serviço).

root      1038  0.0  0.1 249052 46432 tty1     Sl+  09:09   0:01 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/120/gdm/Xauthority -background none -noreset -keeptty -verbose 3
root      2157  0.4  0.2 358056 77424 tty2     Sl+  09:11   0:13 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3

Nvidia-smi também mostra duas sessões xorg rodando na GPU

|    0      1038      G   /usr/lib/xorg/Xorg                            18MiB |
|    0      1100      G   /usr/bin/gnome-shell                          49MiB |
|    0      2157      G   /usr/lib/xorg/Xorg                           173MiB |
|    0      2298      G   /usr/bin/gnome-shell                         116MiB

Outro então este processo extra está funcionando normalmente. Não parece interferir em nada, mas gostaria de descobrir por que isso está acontecendo. Nos mesmos dois sistemas eu executei o Ubuntu 16.04 e o CentOS e não notei este processo xorg duplicado. Se alguém tiver alguma informação que possa me apontar na direção certa, seria ótimo.

    
por mdbox 27.05.2018 / 03:14

1 resposta

1

Graças a estas perguntas " Por que meu GDM está em um TTY diferente do meu ambiente de área de trabalho? "Descobri o motivo das duas sessões do xorg. O gerenciador da área de trabalho do Gnome usa duas sessões xorg que agem como um saudador (login) e as outras como uma sessão do usuário. No passado, uma sessão do xorg foi criada com o root e depois transformada em uma sessão do usuário. No entanto, para futuros planos de desenvolvimento, a decisão de separar essas sessões foi decidida.

Leia mais sobre isso aqui:

link

Let me explain a bit more about why we did this.

Previously, we launched one X server as root, and then when you logged in, we "morphed" it into the session X server. If you went to fast user switching, we then launched a second X server on-demand.

For security reasons, and Wayland porting reasons, we now launch the X server and Wayland server within the user's session, instead of starting one as root.

The way that we do this is that we launch two X servers, one for the gdm greeter session, and for the session user.

It would be entirely possible to tear-down the greeter after we've switched to the user session, it just requires a bit more code, but unfortunately it wouldn't be possible to put both the greeter session and the user session on VT1, since we'd have to launch the user session first, and then tear down the greeter session, and we can't be in that intermediate state while there are two X servers on the same VT at the same time.

I just forgot about the resource issues around keeping around two gnome-shell instances. I'll have a chat with Ray to see if we want to tear down the greeter session and then launch it on demand for user switching / logout to save on resources.

    
por mdbox 29.05.2018 / 04:25