LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-23-2016, 02:00 PM   #1
pingu_penguin
Member
 
Registered: Aug 2004
Location: pune
Distribution: Slackware
Posts: 349

Rep: Reputation: 60
X server without networking.


If I recompile Xorg , disabling its network support , will it improve performance significantly ?

Has anyone tried this ?

According to wikipedia article, it was a vnc-like method in the old days. Now that we have ssh , realvnc etc I would like to remove it.
 
Old 10-23-2016, 02:10 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
You can't, networking is core functionality, even if you run X locally you are still using loopback network device to connect.
 
Old 10-23-2016, 02:32 PM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
You can disable active listening by how you start it.

$ startx -- :0 -depth 24 -nolisten tcp

Which is the default for many distros anyway. Of course this breaks things like Xdmx, and X forwarding. Wayland is supposed to make the X model less network based. I'm not sure what mir brings to the table. Not that any lightweight window managers currently play well with such things.

As far as performance, I've found that cwm works for me. Or something like dwm. You don't really double performance, but an extra 5% is something that gamers pay thousands for. One other trick is to launch resource hogs with a high nice level from the command line.

$ nice -n 10 firefox

By default everything that launches under X runs with the same priority as X (priority/nice level 0). Which can have some performance contentions IMO. Running buggy browsers with a lower priority lets you switch to other things with a higher priority to kill the buggy browser. And helps to get you back to business quicker.
 
Old 10-24-2016, 01:40 AM   #4
pingu_penguin
Member
 
Registered: Aug 2004
Location: pune
Distribution: Slackware
Posts: 349

Original Poster
Rep: Reputation: 60
It's not about the performance, but its sure nice to have an extra boost.

Its more like removing what is not needed, trimming down. If X doesnt really need networking support, I dont see any reason to keep it for my purpose.

Also if I am correct , X just talks to the hardware and draws the windows etc via the window-manager ?(or whatever that you use)

There is no question about it needing loopback or whatever in that case , as long its simple objective is to draw stuff on screen.
 
  


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
Networking samba server NotionCommotion Linux - Newbie 8 03-31-2014 02:54 PM
Networking 4 Lunix RH server 5.0 linux5nasser Linux - Server 1 11-19-2009 03:24 AM
Networking as a File Server kirtimaan_bkn Linux - Networking 10 09-24-2004 08:17 PM
Problem with RH 9 and 2k server networking don_69 Linux - Networking 0 04-22-2004 08:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:08 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