--- Jason Lunz <[EMAIL PROTECTED]> wrote: > On Fri, Jan 26, 2007 at 04:05:05PM -0800, blah > deblah wrote: > > I've made myself a slackware 10.2 uml virtual > machine using the > > 2.6.19.2 kernel. I've configured it to use slirp > for networking. My > > problem is that the upload speed from the virtual > machine seems to be > > capped at 46KB/s. For example if I use scp to put > a file onto the > > machine I will get about 2MB/s, but if I use scp > to get a file from > > the machine I get about 46KB/s. But if I run > several instances of scp > > getting files from the virtual machine, all get > about 46KB/s each. Any > > ideas what's going on? Why isn't it allocating all > available bandwidth > > between the connections? > > An ordinary slirp runs as though connected to a > modem running at a fixed > speed; this makes it quite slow. There's a > "FULLBOLT" #define in the > source that makes it go as fast as possible. > > If you use debian, an alternate slirp binary is > provided as > /usr/bin/slirp-fullbolt with this enabled. To use > it, run with > "eth0=slirp,,slirp-fullbolt" as your uml netdev, or > arrange for > "slirp" on your machine to run slirp-fullbolt. > > Would a patch be accepted to make uml try to use > slirp-fullbolt by > default, and fall back to slirp otherwise? > > Jason >
The odd thing is that I am using the slirp-fullbolt binary from debian. Like I said, I can get more than 46KB/s from the machine, but I need to connect more than once. What I did was make a .slirprc file in my home directory containing the line: redir tcp 5555 22 Then I started the uml machine with: vmlinux mem=64M ubd0=test_root ubd1=swap eth0=slirp,,path-to/slirp-fullbolt I then ran (on the host): scp -oPort=5555 ./bigfile [EMAIL PROTECTED]:/somedir to put a file on the uml machine. I got 2MB/s I then ran: scp -oPort=5555 [EMAIL PROTECTED]:/somedir/bigfile ./ to get a file from the uml machine. I got 46KB/s. The problem seems to be when getting data from the uml machine. If I ran the above command 6 times at once I'd get 46x6=276KB/s, but for some reason it won't allocate all the bandwidth to a single connection. Thanks ____________________________________________________________________________________ Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ ------------------------------------------------------------------------- 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