Greetings:

I'm trying to create a UML-based testbed that will be used investigate
mobile ad hoc network architecture
concepts. The basic platform would consist of several UML hosts
interconnected with a "uml ethernet switch" process. Each UML host
would be running a MANET routing protocol. All the UML instances will
be run on the same platform.

Although UML is a very attractive way to build a testbed, if I start
enough UML instances, then their processing of routing messages will
bog down the host machine.

On the other hand, if I could configure the clocks on the UML hosts so
they run several orders of magnitude slower than real time, then the
overall processing load on the host processor would be reduced by the
same factor.

I've been reading kernel code. There is a routine called:
unsigned long long sched_clock(void)
{
       return (unsigned long long)jiffies_64 * (1000000000 / HZ);
}
in arch/um/kernel/time_kern.c

That seems to be reponsible for knowing the current time in
"nanoseconds".

If I were to remove two zeros from the 1000000000 multiplier, then my
UML host should run at 1% of their rate. I.e., 1% of the rate of the 
underlying hardware clock on the host machine.

Does this sound right?

I tried this experiment and the "date" command seems to function in real
time in spite of the change.

John Zavgren
[EMAIL PROTECTED]
603-371-0513 (home)
603-801-2094 (mobile)
"The problem isn't that there are too many fools in this world, but
rather that lightning isn't selective enough."
-- KC Burgess Yakemovic




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to