Author Topic: Is Xorg required for core functionality of Zentyal?  (Read 2319 times)

infodr

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Is Xorg required for core functionality of Zentyal?
« on: January 31, 2014, 04:32:17 pm »
Due to memory constraints I would prefer running the router with no Xorg most of the time.
Will it still be able to provide all of its advertized functionality?

robb

  • Guest
Re: Is Xorg required for core functionality of Zentyal?
« Reply #1 on: January 31, 2014, 04:34:52 pm »

christian

  • Guest
Re: Is Xorg required for core functionality of Zentyal?
« Reply #2 on: January 31, 2014, 05:22:37 pm »
I would even go one step further: this is something I would not promote.
That's funny we have so many X11 related ports today because few minutes ago I was trying to connect to some Zentyal server using TeamViewer in order to help another Zentyal community user with its VPN set-up.
Everything was very very slow, with average load > 1 despite no connected users.
Investigating further, it appeared that Xorg was consuming 100% CPU  :o 

I wonder why, except perhaps for the very first configuration steps, one would like to have graphical environment on its server  ::) ???

infodr

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Is Xorg required for core functionality of Zentyal?
« Reply #3 on: January 31, 2014, 05:30:17 pm »
I find it useful for example for getting diagnostics directly from the DSL and cable modems connected to the WAN ports, but for that only. Many modems use JavaScript in admin interface and Lynx just does not work.

Booting into runlevel 5 just for that and into 3 for the normal production use should be sufficient.

But I agree, X is a CPU and memory pig and thus the original quesiton.

christian

  • Guest
Re: Is Xorg required for core functionality of Zentyal?
« Reply #4 on: January 31, 2014, 05:43:40 pm »
I get your point.
I'm managing my external modem (which indeed is HTTP based) through Zentyal from my laptop with some specific rules allowing to bypass proxy  ;)

infodr

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Is Xorg required for core functionality of Zentyal?
« Reply #5 on: January 31, 2014, 05:55:40 pm »
Wow, great! I too would love to set up modem managing like that but did not know it could work.
How does it need to be configured?

My DSL TP-Link 8616 modems are on the eth1 and eth2, they work in bridged mode and ISP assigns them static IPs via pppoe.
eth0 is used on the LAN with fixed 10.10.10.1 IP.

How can I access modem interface from the LAN?

christian

  • Guest
Re: Is Xorg required for core functionality of Zentyal?
« Reply #6 on: January 31, 2014, 05:59:22 pm »
From you LAN, default route is supposed to be Zentyal isn't it? Then using your modem internal IP should point your browser to Zentyal internal interface which know were to connect to each modem on eth0 & eth1.
What may not work is HTTP proxy in the middle but you can easily have HTTP proxy rules authorizing to bypass proxy for some internal IP/mac addresses.

infodr

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Is Xorg required for core functionality of Zentyal?
« Reply #7 on: January 31, 2014, 06:11:57 pm »
I don't run any proxies or firewalls on the router.
How can I find out the modem's internal IP in bridged mode?
I know the ppp0 and ppp1 IPs, but not the modems' :(

It should be possible though to switch the modems into router mode and use them as gateways for the soft router... Never tried that, it might just work.
« Last Edit: January 31, 2014, 06:13:40 pm by infodr »

christian

  • Guest
Re: Is Xorg required for core functionality of Zentyal?
« Reply #8 on: January 31, 2014, 06:25:54 pm »
Oops, I didn't pay attention that your are using bridged design.
I never do this thus can't really help. my so called modem are routing, therefore with external and internal IP.
What I don't understand if what kind of configuration you may have to apply in bridged mode and how you can access such modem interface if there is not IP  ???  Not clear to me.

CNServices

  • Zen Monk
  • **
  • Posts: 75
  • Karma: +15/-0
    • View Profile
Re: Is Xorg required for core functionality of Zentyal?
« Reply #9 on: January 31, 2014, 06:35:19 pm »
Investigating further, it appeared that Xorg was consuming 100% CPU  :o 

I wonder why, except perhaps for the very first configuration steps, one would like to have graphical environment on its server  ::) ???

I have seen no evidence that Xorg is a consistent, persistent resource hog on a Zentyal server.

Code: [Select]
5127 ebox      20   0  252m  94m  41m S   10  2.4 305:16.36 perl
   88 root      20   0     0    0    0 S    0  0.0   0:54.75 usb-storage
 1903 theadmin  20   0 17340 1376  972 R    0  0.0   0:00.04 top
 3438 root      20   0  521m  30m 2140 S    0  0.8   1:06.94 samba
 6318 root      20   0  204m  31m  10m S    0  0.8   9:10.04 Xorg
 9761 root      20   0     0    0    0 S    0  0.0   0:53.00 kworker/0:1
17212 root      20   0  139m  20m 7856 S    0  0.5  11:44.60 lxdm-greeter-gt

infodr

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Is Xorg required for core functionality of Zentyal?
« Reply #10 on: January 31, 2014, 07:04:08 pm »
Do the columns 5, 6, and 7 represent memory counts?

CNServices

  • Zen Monk
  • **
  • Posts: 75
  • Karma: +15/-0
    • View Profile
Re: Is Xorg required for core functionality of Zentyal?
« Reply #11 on: January 31, 2014, 07:15:10 pm »
Code: [Select]
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 5127 ebox      20   0  252m  94m  41m S   11  2.4 309:40.86 perl
  979 root      20   0     0    0    0 S    0  0.0   0:12.31 kworker/2:3
 4838 nobody    20   0 31076 3420 2656 S    0  0.1   0:17.04 openvpn
 6071 theadmin  20   0 17340 1380  972 R    0  0.0   0:00.06 top
 6318 root      20   0  204m  31m  10m S    0  0.8   9:17.86 Xorg
 8930 snort     30  10  215m  65m 5500 S    0  1.7   0:09.76 snort
 9761 root      20   0     0    0    0 S    0  0.0   0:55.57 kworker/0:1
17212 root      20   0  139m  20m 7856 S    0  0.5  11:55.21 lxdm-greeter-gt

infodr

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Is Xorg required for core functionality of Zentyal?
« Reply #12 on: January 31, 2014, 08:11:25 pm »
Well, yours is showing that Xorg+display manager are using 50 MB resident RAM.
Just a bit earlier I was told that it would be difficult to use Zentyal in a box with 512 MB RAM.
Those 50 MB can come in handy in this constrained configuration, specially if there are more X apps not included in those 50.

CNServices

  • Zen Monk
  • **
  • Posts: 75
  • Karma: +15/-0
    • View Profile
Re: Is Xorg required for core functionality of Zentyal?
« Reply #13 on: January 31, 2014, 08:27:32 pm »
Those 50 MB can come in handy in this constrained configuration...

I agree.

christian

  • Guest
Re: Is Xorg required for core functionality of Zentyal?
« Reply #14 on: January 31, 2014, 10:10:55 pm »
Just a bit earlier I was told that it would be difficult to use Zentyal in a box with 512 MB RAM.
Those 50 MB can come in handy in this constrained configuration, specially if there are more X apps not included in those 50.

Just try and let us know  8)
If it appears that X is really light and that you're happy with 512 MB or memory, it will definitely help other forum members sharing this concern.
In such case, be sure to report modules you have deployed  ;)

My own platform, running 2.2 with mail and proxy (mainly) including anti-virus runs within 2 MB for system (among 8 GB available), not running X of course  ;D