Access via vnc viewer slow when host is non-root, fast when root. Why?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699
Rep:
Access via vnc viewer slow when host is non-root, fast when root. Why?
This is a bit of a weird one. I have a box I use as a game server, and from time to time I start up xfce, run x11vnc, and remote in via vncviewer. Works good, but is really slow. I do this via a non-root account, of course.
The other day I started xfce from the root account ( I know, I know, never do this, no I don't normally do this, was just testing some stuff). Started x11vnc, and remoted in via vncviewer. And I immediately noticed that performance was easily ten times faster. MUCH faster.
Why would this be so? Why would running xfce and x11vnc via non-root be so slow, and doing it as root be so fast?
The computer and account I use to remote into it is non-root and does not change. It's just that when I run xfce and x11vnc on the server as root, it is ten times faster than when run via non-root.
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699
Original Poster
Rep:
Quote:
Originally Posted by bassmadrigal
Is it possible your regular user isn't part of the video group, and thus doesn't have proper video acceleration while X is running?
Checked that, user is part of video group.
I just realized this has nothing to do with x11vnc or vncserver or remote access. I just went to the machine and started xfce as the non-root user and realized performance is very bad at the machine itself. It's X/xfce itself for the non-root users that is very slow.
This is a normal Slackware 14.2 64 bit install, nothing special, nothing modified, and a fairly clean install.
The only thing out of the ordinary is I have an old GeForce 8400 GS. I have the proprietary nVidia driver loaded.
Performance in xfce as root is superb. Performance for non-root users is very poor. I'm not quite sure where to even start looking for this one, as I've never seen this before.
I created a new user account just to make sure it wasn't a problem with the other user, and a brand new user account likewise performs poorly.
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699
Original Poster
Rep:
I may just swap out video cards because if I run xfce, after a while the box hard locks. I've been running this as a game server for quite a while, and it's rock solid. Until I start xfce, then it eventually locks solid. Mmmm replacing the video card sounds better and better, though that does not explain the performance problems.
It's an old Asus m4xx series board. It's been a good board, does not have onboard video. No stability problems when running as a game server without a gui running.
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699
Original Poster
Rep:
Quote:
Originally Posted by slackartist
yea im not too sure but when my video card completely failed it had to do withthe display so not too sure if its at fault here would be my guess
It would explain the crashes after running X/xfce for a while, but it does not explain the performance problem with non-root users. At any rate, it's the quickest and easiest next step. Results to follow...
I'm wondering if this is just some quirk (read:bug) in the nvidia driver for old video cards like this? Nvidia drivers can be touch-and-go, good one version and crap the next. And how many of us have these old video cards still kicking around? OK, probably a lot of us, I only recently got rid of my socket-A boards and all of my ISA cards...I still have a big box of floppies somewhere...
...and normal X operations appear to run just fine with the nouveau driver, including glxgears. I'm not gaming on that one, however.
I actually was using the nouveau driver, and thought that was causing the problem. I'll start from scratch tonight, swap video card and take it from there.
and i should probably add this like seen on the second link i have
needs_root_rights=yes
i did see this somewhere else , and it was bugging me for some time since i had a few systems where i could startx a session without sudo. Then it was that xwrapper error i think it might have threw. or user as console something like that for the rest of my computers. glad I got this then .
Last edited by slackartist; 07-06-2017 at 07:16 PM.
NVidia driver use for 2D acceleration (i.e. painting the desktop) also the 3D engine, so an explanation for a slow working speed as non-root could be a problematic user access to the special devices for NVidia. Read: user permissions on /dev.
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699
Original Poster
Rep:
I know this is an old thread, but I FINALLY got around to replacing the video card. The new card uses the same driver as the old one, so nothing changed except a quick swap of video card. AND now performance as a non-root user is superb, like you would expect it to be. And so far, it has not locked up. The old card would hard lock the machine every ten minutes or so IF an X server was running. In the console it would run week after week, rock solid, but start up xfce? Blammo, hard lock. The new card has not yet done this.
So I conclude that (98% probability) the old card was defective or (2% probability) the driver just never worked right with this particular card. I think it was an old nVidia 8400 chip set, and was a very old card. Having met some of nVidia's engineers a few years ago when I was in school, and having used their cards and drivers for ... 20 years? ... I'm of the opinion that while most of their stuff is quite good, many of their driver versions, and a few of their chipsets, are pure horse ****.....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.