Skip to contentSkip to conversation

Remove duplicate file in Documentation/networking (drivers_net_wan_Kconfig)

PATCH In review [email protected] 5 participants 6 messages May 28, 2005 – Jun 2, 2005 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 5/7 Remove duplicate file in Documentation/networking (drivers_net_wan_Kconfig)

From: Tobias Klauser <[email protected]>

wanpipe.txt and wan-router.txt in Documentation/networking contain the exact same information (diff between the two shows no difference). This patch removes the reference to this document in drivers/net/wan/Kconfig.

---
 Kconfig |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/net/wan/Kconfig +1 -1
Index: quilt/drivers/net/wan/Kconfig
===================================================================
@@ -435,7 +435,7 @@ config VENDOR_SANGOMA
 	  the driver to support.
 
 	  If you have one or more of these cards, say M to this option;
-	  and read <file:Documentation/networking/wanpipe.txt>.
+	  and read <file:Documentation/networking/wan-router.txt>.
 
 	  To compile this driver as a module, choose M here: the
 	  module will be called wanpipe.

--

#1 lore raw

The values of gettimeofday() jumps.

Hello,
We have several SMP machines (Tyan Tiger MPX motherboard, 2
AthlonMP 1900+ CPU, linux-2.4.21-20.EL). When running some time sensitive programs, I observed that the values of gettimeofday () jumped sometimes on a couple of machines (other machines are fine), from several hundreds milliseconds to a couple of seconds.
I searched online and tried to figure out why this happened. It
seems there are a lot of people who complained about the clock drift issue of gettimeofday () on SMP machines. But I still could not get the answers about what is the exact cause of this issue and how to fix it.
Could somebody tell me some clues? Can this be solved by
upgrading the kernel to 2.6? Thanks a lot.

By the way, I have read Linux SMP HOWTO and the following documents.
http://seclists.org/lists/linux-kernel/2002/Jun/1524.html
http://seclists.org/lists/linux-kernel/2002/Jun/1550.html
http://alphalinux.org/archives/linux-alpha/April2000/0015.html
I could not get enough clues from them yet, maybe because my limited knowledge about the kernel.

Regards,
[Liangchen Zheng]

#2 lore raw

Re: The values of gettimeofday() jumps.

Quoted 6 lines · Liangchen Zheng

Hello,
We have several SMP machines (Tyan Tiger MPX motherboard, 2
AthlonMP 1900+ CPU, linux-2.4.21-20.EL). When running some time sensitive programs, I observed that the values of gettimeofday () jumped sometimes on a couple of machines (other machines are fine), from several hundreds milliseconds to a couple of seconds.

Are you running NTP on those machines by any chance?

Lee

#3 lore raw

Re: The values of gettimeofday() jumps.

In reply to Liangchen Zheng
Quoted 6 lines · Liangchen Zheng

Hello,
We have several SMP machines (Tyan Tiger MPX motherboard, 2
AthlonMP 1900+ CPU, linux-2.4.21-20.EL). When running some time sensitive programs, I observed that the values of gettimeofday () jumped sometimes on a couple of machines (other machines are fine), from several hundreds milliseconds to a couple of seconds.

try "notsc" as boot option

#4 lore raw

RE: The values of gettimeofday() jumps.

The clock drift disappeared after booting the kernel with
"notsc" option.
Thanks a lot. It seems there is some bug with the TSC support inside the kernel.
Maybe it is caused by the clock drifts between two TSCs in the both CPUs, as mentioned by Pádraig Brady in one reply to my previous question.
But I am still wondering why the clock drift can be so huge (a
couple of seconds sometimes) and the drifts occurred so regular (around every 1 second).
If I have time in future, I will dig into it to figure out what is the exact reason.
Thanks a lot for your suggestions.

Regards,
Liangchen

-----Original Message-----
From: Arjan van de Ven [mailto:[email protected]]
Sent: Sunday, May 29, 2005 12:42 AM
To: Liangchen Zheng
Cc: [email protected]
Subject: Re: The values of gettimeofday() jumps.

Quoted 4 lines · Liangchen Zheng

Hello,
We have several SMP machines (Tyan Tiger MPX motherboard, 2
AthlonMP 1900+ CPU, linux-2.4.21-20.EL). When running some time sensitive programs, I observed that the values of gettimeofday ()

jumped

Quoted 2 lines

sometimes on a couple of machines (other machines are fine), from several hundreds milliseconds to a couple of seconds.

try "notsc" as boot option

#5 lore raw

Re: The values of gettimeofday() jumps.

In reply to Liangchen Zheng
Quoted 6 lines · Liangchen Zheng

Hello,
We have several SMP machines (Tyan Tiger MPX motherboard, 2
AthlonMP 1900+ CPU, linux-2.4.21-20.EL). When running some time sensitive programs, I observed that the values of gettimeofday() jumped sometimes on a couple of machines (other machines are fine), from several hundreds milliseconds to a couple of seconds.

That sounds like what I described here:
http://lkml.org/lkml/2005/4/4/57

2 options as far as I can see.

1. Use irq affinity to bind the timer irq to a particular CPU, while using CPU affinity to bind your process to a particular CPU.

2. Change the code to maintain a last_tsc_low for each CPU.

Signature · 2 lines
Pádraig Brady - http://www.pixelbeat.org
--