LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 01-26-2007, 06:12 AM   #1
tovis
Member
 
Registered: Jan 2007
Location: Budapest
Distribution: Debian
Posts: 74

Rep: Reputation: 15
Smallest NTP server


I've should synchronize my LAN. Problem is that I have to this a quite powerless box - Dell Gn+ P200MHz MMX with 64MByte RAM, which have also quite high load (message concentration from several channels, and synchronize end points to his own clock). I've a /uBlox GPS as time source. Which NTP server to choose, what using the less resources. I'm using Debian stbale 3.1 and the easiest way to use "debianized" packages: chrony, simple NTP and BSD NTP.

May be, the best solution for me, periodically (every day) get the time from GPS, simply set timer of my box and others would get time from time or daytime service through inetd (box does not connected to internet anyway). I do not need to high precise clock - some seconds would be enough.
But of course the NTP would be a more professional solution ...
 
Old 01-26-2007, 06:19 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
how would you expect any ntp server to use any resources worth mentioning? even with 100 machines connecting to it, the server would typically only recieve an ntp request once every 10 seconds once the clients settle down...
 
Old 01-26-2007, 06:36 AM   #3
tovis
Member
 
Registered: Jan 2007
Location: Budapest
Distribution: Debian
Posts: 74

Original Poster
Rep: Reputation: 15
acid_kewpie - thanks to your reply, but my english also as worth as my box. The LAN what should be served about 12 boxes. I'm not afraid about requests but the memory consuption - 64 MByte total and free about 10 MByte! Also, I've should using interface to connect GPS. I look through some descriptions about NTP servers are listed. all of them seem to be quite complex, with a lot of configuring to do, but no information about memory consuption or resources are used. I wait suggetions from guys who look on thaose NTP servers in live, I only heard about them, and don't have time to try all of them
 
Old 01-26-2007, 07:43 AM   #4
dbogdan
Member
 
Registered: Feb 2005
Location: Metro Detroit, US
Distribution: Suse/Slackware/Mepis
Posts: 174

Rep: Reputation: 30
Alot of modern routers are capable of being an NTP source (as well as other things such as DHCP), do you have a router that is capable ?

Just a thought.
 
Old 01-26-2007, 07:49 AM   #5
tovis
Member
 
Registered: Jan 2007
Location: Budapest
Distribution: Debian
Posts: 74

Original Poster
Rep: Reputation: 15
I do not have apropriate router. The preferrable place for NTP is in this box - it is working like a kind router/gateway - I called it as "concentrator". This box collecting messages from several hundreds of equipment, and those equipment are also synchromized with this box, which is made by underlying protocol automatically (or may be nested).
 
Old 01-26-2007, 08:13 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
i just don't think you have a thing to be concerned about. ntp is a tiny thing in all respects other than importance... only issue i would think of is that the box it is running on itsel fneeds a solid and reliable clock to minimize additional drift.
 
Old 01-26-2007, 08:17 AM   #7
tovis
Member
 
Registered: Jan 2007
Location: Budapest
Distribution: Debian
Posts: 74

Original Poster
Rep: Reputation: 15
Thanks acid_kewpie
In this case I should ask, which is the NTP servers simplest to setup from the list above, for using with using a stand alone GPS module?
 
Old 01-26-2007, 08:25 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
i'm only really familiar with ntpd, didn't ever think that other ntp servers would really exist... does the job fine and is standard on nearly all linux distros
 
Old 01-26-2007, 08:51 AM   #9
tovis
Member
 
Registered: Jan 2007
Location: Budapest
Distribution: Debian
Posts: 74

Original Poster
Rep: Reputation: 15
OK!
I will try it first. I thing ntpd is the "simple NTP" from my list;o)
 
Old 01-26-2007, 10:45 AM   #10
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
OpenNTPD is quite small, much smaller than ISC NTPd. There is a portable version of the source code for Linux.

You can see that the goals are mostly about security and simplicity. The man page for ntp.conf is very simple. The only options you would need are sensor (to tell it which device is your GPS) and listen on to tell it which IP addresses to accept queries on. That's it!

You can use a simple script to start the service:
Code:
#!/bin/sh
### BEGIN INIT INFO
# Provides:       openntpd
# Required-Start: network
# Required-Stop:  network
# Default-Start:  2 3 5
# Default-Stop:   0 1 6
# Description:    OpenNTPD Startup Service for Linux
### END INIT INFO

OPENNTPD_CONFIG=/usr/local/etc/ntpd.conf
OPENNTPD_BIN=/usr/local/sbin/ntpd

case "$1" in

'start')
        if [ -f $NTPD_CONFIG ]; then
                if [ -x $OPENNTPD_BIN ]; then
                        $OPENNTPD_BIN
                fi
        fi
        ;;

'stop')
        killall $OPENNTPD_BIN
esac
 
Old 01-26-2007, 11:21 AM   #11
tovis
Member
 
Registered: Jan 2007
Location: Budapest
Distribution: Debian
Posts: 74

Original Poster
Rep: Reputation: 15
Good!
I live devils!
Debian called this version openntpd - and mark as open BSD version.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LOcal NTP server sawan Linux - Software 3 07-25-2005 12:08 AM
Disabling NTP server dakota rob Linux - Software 1 01-28-2005 08:44 PM
Question re: NTP Server daihard Linux - Software 1 01-10-2005 03:54 AM
Creating An NTP Server icedude Linux - Networking 1 11-18-2004 09:41 AM
NTP cannot use server, NTP -d can jerryvapps Linux - Newbie 0 07-28-2004 03:22 PM


All times are GMT -5. The time now is 11:19 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration