LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 08-14-2015, 01:56 PM   #1
bagginmtdoom
Member
 
Registered: Apr 2013
Posts: 40

Rep: Reputation: Disabled
Are root applications faster?


I have this basic .txt (76kb) file that if I open in leafpad under a normal user the scrolling lags behind. Meaning that if I scroll down from the top of the document to the middle of the document the app takes a while for it self to get to that point all the while looking laggy. As if I was getting 5fps in a video. If I were to use the scroll bar on the app and drag the cursor down the scroll bar slowly goes down the page and so does the content.

However if I were to open leafpad and the document under a root user there is no lag. Scrolling is very smooth and responsive. I can jump to any point in the document instantly.

Is this because under root they (the applications) have higher priorities making the app faster? Or does apps run in real time under a root user? How would I make it equally as fast under a non root user?

Thank you!
 
Old 08-14-2015, 02:38 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
More likely you have a user desktop setting that isn't on for root. Check for things like smooth scrolling, or desktop effects.
 
Old 08-15-2015, 02:51 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by bagginmtdoom View Post
Is this because under root they (the applications) have higher priorities making the app faster? Or does apps run in real time under a root user?
no, and no.

most probably one of the things the previous poster mentioned.

Last edited by ondoho; 08-15-2015 at 02:52 AM.
 
Old 08-15-2015, 06:21 AM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
if you are opening as a normal user first the file will start to be read in to the disk cache, if you then open it as root it will already be in the disk cache and so apparantly load faster, at a guess, try openi g the file first as root then as a normal user and see what happens.
 
Old 08-15-2015, 07:40 AM   #5
bagginmtdoom
Member
 
Registered: Apr 2013
Posts: 40

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Keith Hedger View Post
if you are opening as a normal user first the file will start to be read in to the disk cache, if you then open it as root it will already be in the disk cache and so apparently load faster, at a guess, try opening the file first as root then as a normal user and see what happens.
If I do open the file with root access first and then again with normal access, the document still scrolls sluggishly. Would graphics have anything to do with it? When I open leafpad as root the app does not have the system theme, instead it has the Raleigh theme.

Last edited by bagginmtdoom; 08-15-2015 at 12:28 PM.
 
Old 08-15-2015, 10:23 AM   #6
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
themes will make a differrence but not that much, check if the default nice value for root is the same as your user it should default to 0
 
Old 08-15-2015, 12:23 PM   #7
bagginmtdoom
Member
 
Registered: Apr 2013
Posts: 40

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Keith Hedger View Post
themes will make a differrence but not that much, check if the default nice value for root is the same as your user it should default to 0
The value for both the root user and my user is 0.
 
Old 08-15-2015, 03:03 PM   #8
bagginmtdoom
Member
 
Registered: Apr 2013
Posts: 40

Original Poster
Rep: Reputation: Disabled
After switching the main system theme to Raleigh, I can say that scrolling performance for a normal user is comparable to that of a root user.

So it looks as if my ATI 4200 GPU can not handle the Adwaita theme anymore

Back to gnome 2 for me!
 
Old 08-15-2015, 04:32 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,983

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Wonder if the same program is running actually?
 
Old 08-16-2015, 02:33 PM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by bagginmtdoom View Post
After switching the main system theme to Raleigh, I can say that scrolling performance for a normal user is comparable to that of a root user.
i must say that i can confirm that.
not the thing with the root user, but with some gtk themes being very resource-hungry.

are you sure it's adwaita? which application? chances are, it is already a gtk2 app.

try also other themes; it is not necessarily the plain and ugly ones that are the fastest.
 
Old 08-17-2015, 05:26 PM   #11
bagginmtdoom
Member
 
Registered: Apr 2013
Posts: 40

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
i must say that i can confirm that.
not the thing with the root user, but with some gtk themes being very resource-hungry.

are you sure it's adwaita? which application? chances are, it is already a gtk2 app.

try also other themes; it is not necessarily the plain and ugly ones that are the fastest.
Quote:
Originally Posted by ondoho View Post
i must say that i can confirm that.
not the thing with the root user, but with some gtk themes being very resource-hungry.

are you sure it's adwaita? which application? chances are, it is already a gtk2 app.

try also other themes; it is not necessarily the plain and ugly ones that are the fastest.
When using the uglier theme, both the root user and the normal user have the same amount of responsivness and they both opened at the same time according to time. So running a program as root, that program will not be any faster then running it as a normal user. (Unless if you are running two different themes) I just thaught it did.

The programs I tried were leafpad, gedit, scrolling an article on the bbc via firefox, and scrolling thru proc on thunar.

And the themes I tried were Adwaita, Raleigh and Numix Blue


And the icon themes I tried were Faenza and Gnome

With the Adwaita theme and the Faenze icon set, opening leafpad took about a half a second and scrolling down a text documnent I had was horribly laggy. Changing the icon set to Gnome leafpad opened in about .45 seconds but scrolling was of course still laggy because I was using the Adwaita theme. Scrolling thru proc on Thunar was really laggy that it was immpossible to jump to one point to another with out having to wait 1 or 2 seconds for it to slowly scroll to where you wanted to go. Scrolling thru a completly rendered bbc article was fast up until the point were there was an image and then scrolling become laggy until I passed the photo.

Using the Numix Blue theme leafpad opened in about two seconds and scrolling thru a document was impossible as the app became unresponsive after trying to scroll to the half way point of the document with the scroll wheel. Thunar, with the Faenza icons, locked up as well and scrolling on the bbc article was laggy but managable. With the Gnome iconsthunar did not lock up but scrolling was laggy.

With the Raleigh theme and Faenze icon set scrolling thru proc on thunar was jittery but not horribly slow, scrolling thru the text document on leafpad was very smooth and leafpad opened up in about 4 thenths of a second. Scrolling thru the BBC was very fast even when I was scrolling past a photo. With the Gnome icons scrolling became more responsive but every now and again there was some lag.

I find that using the Raleigh theme with no icons is fastest for thunar.

I know I did not provide any science to my terms of laggy and such but I do not know how to measure scrolling lag.

Its a shame that there are kernel patches to increase the processing power of the cpu, but not for the GPU.
 
Old 08-19-2015, 11:44 AM   #12
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by bagginmtdoom View Post
Its a shame that there are kernel patches to increase the processing power of the cpu, but not for the GPU.
please post the output of
Code:
lspci -k
for now, esp. in firefox, disable smooth scrolling.
and just don't use that numix gtk theme.
 
Old 08-23-2015, 05:38 PM   #13
bagginmtdoom
Member
 
Registered: Apr 2013
Posts: 40

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
please post the output of
Code:
lspci -k
for now, esp. in firefox, disable smooth scrolling.
and just don't use that numix gtk theme.
I am sorry for the delay. Here is the output:

frodo@ATT:~$ lspci -k
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] RS880 Host Bridge
Subsystem: Toshiba America Info Systems Device ff00
00:01.0 PCI bridge: Toshiba America Info Systems Device 9602
00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 0)
Kernel driver in use: pcieport
00:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] RS780 PCI to PCI bridge (PCIE port 2)
Kernel driver in use: pcieport
00:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 3)
Kernel driver in use: pcieport
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]
Subsystem: Toshiba America Info Systems Device ff00
Kernel driver in use: ahci
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
Subsystem: Toshiba America Info Systems Device ff00
Kernel driver in use: ohci-pci
00:12.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller
Subsystem: Toshiba America Info Systems Device ff00
Kernel driver in use: ohci-pci
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
Subsystem: Toshiba America Info Systems Device ff00
Kernel driver in use: ehci-pci
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
Subsystem: Toshiba America Info Systems Device ff00
Kernel driver in use: ohci-pci
00:13.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller
Subsystem: Toshiba America Info Systems Device ff00
Kernel driver in use: ohci-pci
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
Subsystem: Toshiba America Info Systems Device ff00
Kernel driver in use: ehci-pci
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 3c)
Subsystem: Toshiba America Info Systems Device ff00
Kernel driver in use: piix4_smbus
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA)
Subsystem: Toshiba America Info Systems Device ff00
Kernel driver in use: snd_hda_intel
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller
Subsystem: Toshiba America Info Systems Device ff00
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Miscellaneous Control
Kernel driver in use: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Link Control
01:05.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RS880M [Mobility Radeon HD 4225/4250]
Subsystem: Toshiba America Info Systems Device ffa0
Kernel driver in use: radeon
0e:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8191SEvB Wireless LAN Controller (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. Device 8181
Kernel driver in use: rtl8192se
14:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
Subsystem: Toshiba America Info Systems Device ff00
Kernel driver in use: r8169
 
Old 08-26-2015, 02:23 AM   #14
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by bagginmtdoom View Post
Its a shame that there are kernel patches to increase the processing power of the cpu, but not for the GPU.
there are actually no such kernel patches, neither for cpu nor for gpu.
linux is great (and magic!), but it still cannot increase the physical capabilities of your hardware.
is your gpu an ATI Radeon HD4225?
according to this it wasn't strong even when it came out some 6 years ago.
using the proprietary amd/ati driver (instead of the open source "radeon", as seen in your lspci output) might help - a little.
 
Old 08-26-2015, 08:39 AM   #15
bagginmtdoom
Member
 
Registered: Apr 2013
Posts: 40

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
there are actually no such kernel patches, neither for cpu nor for gpu.
The BFS patch does seem to increase the processing power of the CPU, even tho it is still operating at its manufactured limits.
Quote:
is your gpu an ATI Radeon HD4225?
Ya, this was the first computer that I had ever bought. The only reason why I did, was because of the BestBuy guy telling me that this was faster for gaming and processing. This thing came out right when the i series was on its first gen. A couple of days latter I was devastated that I was only able to play games at low settings in order for it to be fluid. Even on Gentoo, games do not run that fast, I only get a max of 35 fps on Nexuiz and an average of 29.

The sad thing is that it was about 555 dollars and now it is only worth about 25 dollars on ebay. There are some Dells from 05 that are still going for about 100 dollars.

Last edited by bagginmtdoom; 08-26-2015 at 08:43 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Applications that are faster in 64-bit Ulysses_ Linux - Software 8 04-21-2011 03:15 PM
faster gui applications milindlokde Programming 2 01-19-2010 11:20 AM
why do windows applications start faster? rabbit2345 Linux - Software 9 01-12-2010 10:31 PM
Help me to start applications faster on Fedora Core 6 anamalikhan Linux - Newbie 1 04-20-2008 07:07 AM
i need to applications to run faster paimpozhil General 22 06-02-2004 12:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 08:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration