Brian Kolaci wrote:

Essentially he wants to be able to assure his users that the transfers
will be fast and not affect the network users.  If they complain that
during these operations are slow, then he wanted to recommend sharing
a lofs mount and share the data that way (and also be assured that it
won't affect the users coming in via the network).


Oh! Why didn't you say that?  ;-)

The following D script measures inter-zone network packet latency. Latency is very small on modern systems, as you'd expect from memory transfers :-)

You'll need to modify 'execname' values and possibly 'write' and 'recv' depending on the syscalls the app uses. You might also need to modify the values used in the lquantize call.

syscall::write:entry
/execname=="sender" && valid==0/
{
  sendtime=timestamp;
  valid=1;
}

syscall::recv:return
/execname=="receiver" && valid==1/
{
  latency=timestamp-sendtime;
  printf ("%d", latency);
  @l[pid]=lquantize(latency, 0, 500000, 10000);
  @a[pid]=avg(latency);
  valid=0;
}



--
--------------------------------------------------------------------------
Jeff VICTOR              Sun Microsystems            jeff.victor @ sun.com
OS Ambassador            Sr. Technical Specialist
Solaris 10 Zones FAQ:    http://www.opensolaris.org/os/community/zones/faq
--------------------------------------------------------------------------
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to