+ -
当前位置:首页 → 问答吧 → 时间总是走快

时间总是走快

时间:2009-10-16

来源:互联网

在Windows没事,但是在Arch下就走快,开一天机的话能快上半个小时左右。

用了ntp,也是不行,有没有朋友知道这个怎么解决?谢谢

作者: mingfal   发布时间: 2009-10-16

我2个月前也是这样 实在没办法, 重装了系统 ;

作者: kldoo   发布时间: 2009-10-16

rc.conf贴一下

作者: jarryson   发布时间: 2009-10-17

哪位大侠能进来详细地说一说,自从前几天升级以后我的系统时间从来没有正确过

,google了一大堆方法也没有搞定。时间不正确有时导致系统无法启动(因为前次

mount的时间在本次mount时间之后)。

作者: wwpp3271   发布时间: 2009-10-17

rc.conf一开始那段贴一下

作者: nacre   发布时间: 2009-10-17

把/var/lib/hwclock/adjtime删掉,然后调整好系统时间,重启下试试。

作者: socket9999   发布时间: 2009-10-17

偶差不多几个月前也是时间走的快半个小时甚至一两个小时,只好每天开机后在线同步时间,结果后来莫名就好了,

作者: 32idea   发布时间: 2009-10-17

引用:
作者: jarryson
rc.conf贴一下
#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="Asia/Shanghai"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=()

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="MYNEW"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
# - prefix an entry in INTERFACES with a ! to disable it
# - no hyphens in your interface names - Bash doesn't like it
#
# DHCP: Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
eth0="eth0 192.168.1.211 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(eth0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.1.1"
ROUTES=(gateway)

# Enable these network profiles at boot-up. These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network !netfs !crond @alsa @stbd hal gdm)

作者: wwpp3271   发布时间: 2009-10-17

解决方法:
安装openntpd:sudo pacman -S openntpd
配置文件不用改
添加服务:
DAEMONS=(syslog-ng network @mpd netfs crond @openntpd @hal ...)

作者: fjfb   发布时间: 2009-10-17

引用:
作者: socket9999
把/var/lib/hwclock/adjtime删掉,然后调整好系统时间,重启下试试。
谢谢,不过这个早就试过了,还是不行

作者: mingfal   发布时间: 2009-10-17

引用:
作者: fjfb
解决方法:
安装openntpd:sudo pacman -S openntpd
配置文件不用改
添加服务:
DAEMONS=(syslog-ng network @mpd netfs crond @openntpd @hal ...)
谢谢,一直都是这样的,也不行

作者: mingfal   发布时间: 2009-10-17

我的/etc/rc.conf

代码:
#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="Asia/Shanghai"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=()

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="Arch"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
# - prefix an entry in INTERFACES with a ! to disable it
# - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP: Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
eth0="eth0 192.168.0.100 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(eth0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(gateway)
 
# Enable these network profiles at boot-up. These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng hal alsa network tor privoxy netfs crond kdm openntpd)

作者: mingfal   发布时间: 2009-10-17

顶一下顶一下

作者: mingfal   发布时间: 2009-10-19

超频的?
您输入的信息太短。至少要有 6 个英文字符或汉字。

作者: Havanna   发布时间: 2009-10-19

引用:
作者: Havanna
超频的?
您输入的信息太短。至少要有 6 个英文字符或汉字。
没超频……
您输入的信息太短。至少要有 6 个英文字符或汉字。

作者: mingfal   发布时间: 2009-10-21

不是在虚拟机里面跑吧?

网上一般对时间不准的解决方法,如果不是ntp同步,就是kernel加参数clock=pmtmr或者notsc。

作者: zlowly   发布时间: 2009-10-21

终于搞定了。是修改的kernel的参数clocksource

/sys/devices/system/clocksource/clocksource0/available_clocksource 里是可用参数值

/sys/devices/system/clocksource/clocksource0/current_clocksource 里是当前参数值

把每个值都试一下找找就行了(可以先直接修改/sys/devices/system/clocksource/clocksource0/current_clocksource里面的值来测试,找到了再改menu.lst)

作者: mingfal   发布时间: 2010-01-10