[stgt] help tgt segfault

Tomasz Chmielewski mangoo at wpkg.org
Tue Feb 3 12:00:59 CET 2009


FUJITA Tomonori schrieb:
> On Tue, 03 Feb 2009 11:46:35 +0100
> Tomasz Chmielewski <mangoo at wpkg.org> wrote:
> 
>> FUJITA Tomonori schrieb:
>>
>> (...)
>>
>>>>> 2) you use slow network in this configuration, as you said before?
>>>> Yes.
>>>> Slow connection is just 5 kB/s in both directions.
>>>> It's easy to reproduce the problem this way.
>>>> Slow link is the third target above.
>>> So the connections between the target box and 192.168.4.52 are slow
>>> while the connections between the target box and 192.168.111.173 is
>>> not slow.
>>>
>>> Right?
>> Yes, it is correct.
>> But I'm sure the same will happen with only one target connected (using 
>> a slow link).
> 
> OK, I guess that I need to see if I can reproduce it.
> 
> Is there a good way to emulate a slow link?

I use OpenVPN for that and a basic configuration with no encryption.
OpenVPN is shipped with most distributions. It needs "tun" kernel module.

Commands I used.

First machine:

openvpn --remote 192.168.111.177 --dev tun --ifconfig 192.168.4.52 192.168.4.51 --verb 1 --comp-lzo \
        --resolv-retry 999999 --ping-restart 120 --ping 6 --port 5123 --fragment 1400 --mssfix 1400 \
        --shaper 5000

Second machine:

openvpn --remote 192.168.111.175 --dev tun --ifconfig 192.168.4.51 192.168.4.52 --verb 1 --comp-lzo \
        --resolv-retry 999999 --ping-restart 120 --ping 6 --port 5123 --fragment 1400 --mssfix 1400 \
        --shaper 5000


--shaper 5000 - it is about 5 kB/s

Change --remote addresses to match your IP addresses.

After running these two commands, you should be able to ping 192.168.4.52, 192.168.4.51 from both hosts.


-- 
Tomasz Chmielewski
http://wpkg.org
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list