Loopback problem?
Loopback problem?
- Subject: Loopback problem?
- From: "Alex Yash" <email@hidden>
- Date: Thu, 4 May 2006 10:43:25 +0200
Hi,
I wrote a client/server application written in C++ and running on
MacOSX. The client application has to be installed on a mac and the
server application on another one. These applications exchange small
TCP packets (approximatively one kB each).
When the client asks the server, the client waits for the response of
the server. To optimize the client/server, I added a way to measure
the time it takes for the client to receive the response from the
server. The time difference between the request and the response
usually takes something like 500 microseconds.
In some cases it is useful to run the client and server application on
the same machine. On a G5, or a new iMac Core Duo, the delay is a bit
faster than 500 microseconds. That can be explained by the fact I use
the localhost and don't waste time on the network.
But I have a problem when I run the client and the server application
on some machines like an iMac G4 or a PowerBook G4. If I launch the
client and the server application on one of these machines (local),
the time between the request and the response takes more than 20 000
microseconds, which is 40 time slower than if the client and the
server applications were not on the same computer! This problem
doesn't seem to appear on G5 and Intel machines.
All machines are running with a fresh installed MacOS X 10.4.6. The
only difference I see is hardware differences between these machines.
So I would like to know if there are some known loopback problems with
G4 machines, and if there is a way to solve that. Or any other ideas
from it could come from?
---------------------------
The iMac Info:
Hardware:
Hardware Overview:
Machine Model: PowerMac6,1
CPU Type: PowerPC G4 (3.3)
Number Of CPUs: 1
CPU Speed: 1.25 GHz
L2 Cache (per CPU): 256 KB
Memory: 768 MB
Bus Speed: 167 MHz
Boot ROM Version: 4.6.8f4
Network:
Ethernet intégré:
Type: Ethernet
Hardware: Ethernet
BSD Device Name: en0
Ethernet:
Media Options: Half Duplex
Media Subtype: 100baseTX
Software:
System Software Overview:
System Version: Mac OS X 10.4.6 (8I127)
Kernel Version: Darwin 8.6.0
The PowerBook Info:
Hardware:
Hardware Overview:
Machine Model: PowerBook5,2
CPU Type: PowerPC G4 (1.1)
Number Of CPUs: 1
CPU Speed: 1.25 GHz
L2 Cache (per CPU): 512 KB
Memory: 512 MB
Bus Speed: 167 MHz
Boot ROM Version: 4.7.1f1
Network:
Ethernet intégré:
Type: Ethernet
Hardware: Ethernet
BSD Device Name: en0
Ethernet:
Media Options: Full Duplex
Media Subtype: 100baseTX
Software:
System Software Overview:
System Version: Mac OS X 10.4.6 (8I127)
Kernel Version: Darwin 8.6.0
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden