<br><br><div class="gmail_quote">On Mon, Mar 5, 2012 at 1:25 PM, Stephen Hemminger <span dir="ltr">&lt;<a href="mailto:shemminger@vyatta.com">shemminger@vyatta.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, 5 Mar 2012 12:03:11 -0600<br>
Jacob Edwards &lt;<a href="mailto:jme147@msstate.edu">jme147@msstate.edu</a>&gt; wrote:<br>
<br>
&gt; What is the maximum possible delay that can be introduced by Netem? I have<br>
&gt; seen that it was 2^32 us ( 71 minutes ), but have also heard that some<br>
&gt; updates to the Linux kernel has affected the ability to introduced that<br>
</div>&gt; long of a delay. I am trying to reach about *182 second* delay to emulate a<br>
&gt; space link to Mars, but when I get to about *138 seconds* the delay is not<br>
<div class="im">&gt; seen by my ping packets.<br>
&gt; Is there a way to fix this so I can can get at least 182 second delay? or<br>
&gt; do I need to look for an older version of Linux? I am running Fedora 14<br>
&gt; with Linux kernel 2.6.35.6-35.fc14.i686<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Jacob Edwards<br>
&gt;<br>
<br>
</div>The issues is that psched_tdiff_t is long (32 bits).<br>
You could try a 64 bit kernel if your hardware allows, then the tdiff would<br>
be 64 bits. Or just change definition in net/pkt_sched.h from<br>
<br>
typedef long psched_tdiff_t;<br>
to<br>
typedef s64 psched_tdiff_t;<br>
</blockquote></div><br>I have found the pkt_sched.h on my Fedora machine, which was located in the usr/include/linux/ directory.<br>But there is no <br><br>typedef long psched_tdiff_t; <br><br>definition in the code. Even if I did find that and recoded it, how would I recompile it since it is built into the kernel?<br>
<br><br>