Also, my first attempt at building my own image makes QEMU hang when it tries to run it.
My Capstanfile:base: cloudius/osv
cmdline: java Main
--
You received this message because you are subscribed to the Google Groups "OSv Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osv-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hello again!More questions =)I've noticed that I *need* to docmdline: /java.so io.osv.MultiJarLoader -mains /javamainsand thatcmdline: /java.so Maindoes not work, causing the same hang-qemu-forever behavior I noticed earlier. Is this intentional? Or am I doing something wrong?Also, I have managed to get my Spray.io Scala web app booting in OSV!
Unfortunately, I have been unable to connect to it in the browser; is there a setting I can pass to Capstan somewhere to tell it to forward some port or IP address to qemu?

How can I increase the amount of heap space that OSv or the OSv-JVM has to run?
Hello,On Sun, Apr 27, 2014 at 9:29 PM, Haoyi Li <haoy...@gmail.com> wrote:
How can I increase the amount of heap space that OSv or the OSv-JVM has to run?OSv JVM memory balloon should give all available memory for the JVM. How much memory are you giving to the guest? Capstan default is 1 GB but you can bump it up with the "-m" command line option.
You can set JVM heap size manually with the -Xmx command line option after "/java.so" in Capstanfile cmdline.- Pekka
--

Also, is the OSv equivalent of rt.jar available somewhere on the OSv filesystem that I can depend upon e.g. to read into memory? I'm currently bundling it which probably accounts for more than half of my 100mb fat jar
Yessss it works
I've successfully run a version of www.scala-js-fiddle.com on OSV on qemu! That comprises
- Akka 2.3.0
- a spray-routing webserver
- the Scala compiler
- the ScalaJS compiler
- the Google Closure CompilerOf note, it seems to take an order of magnitude more time to boot the application on Qemu/OSV v.s. running locally on my OSX machine or on Ubuntu/EC2; the boot time literally goes from 30 seconds to 10 minutes, and a hot-compile from 5 seconds to 110 seconds. It's a very-heavy-CPU-bound application to boot for it to take 30 seconds on my i7 laptop.
Is the slowness known behavior of OSv? Or is it something to do with qemu? How does one package up the image sufficiently to load onto Amazon EC2 now that I have it booting locally? Would the perf there be better than the perf I'm seeing running locally?
On Sun, Apr 27, 2014 at 11:32 PM, Haoyi Li <haoy...@gmail.com> wrote:
Yessss it works
I've successfully run a version of www.scala-js-fiddle.com on OSV on qemu! That comprises
- Akka 2.3.0
- a spray-routing webserver
- the Scala compiler
- the ScalaJS compiler
- the Google Closure CompilerOf note, it seems to take an order of magnitude more time to boot the application on Qemu/OSV v.s. running locally on my OSX machine or on Ubuntu/EC2; the boot time literally goes from 30 seconds to 10 minutes, and a hot-compile from 5 seconds to 110 seconds. It's a very-heavy-CPU-bound application to boot for it to take 30 seconds on my i7 laptop.Yes, if you are using plain qemu with no other kind of acceleration, that whatever you run on top of that is supposed to get extremely slow, and definitely matches the numbers you are seeing. This is because qemu in that case won't be virtualizing anything, but emulating every instruction issued.

I just tried running this on VMware, it's blowing up with the following error message and the VM hangs. It looks like it's booting up Qemu (I see the window pop up) and being unable to run the VMware image. what it should be doing is booting up VMware and running the VMware image. Any idea why it's doing this?
On Mon, Apr 28, 2014 at 10:45 PM, Haoyi Li <haoy...@gmail.com> wrote:> Now, about uploading to Amazon, take a look at http://osv.io/amazon-ec2/ and let us know if you find any problemsI looked around on those pages, and saw a bunch of stuff about running existing AMIs on EC2, but I didn't find anything useful in terms of creating my own, other than "Instructions on how to do this will be available soon.". Do you think those instructions could be made available? =)On Mon, Apr 28, 2014 at 12:57 PM, Haoyi Li <haoy...@gmail.com> wrote:
> Is VirtualBox or VMware not working for you?I haven't tried. I just picked Qemu because it was at the top of the wiki page. I have VMware installed for other purposes and will try that.On Mon, Apr 28, 2014 at 4:26 AM, Pekka Enberg <pen...@cloudius-systems.com> wrote:
On Mon, Apr 28, 2014 at 11:46 AM, Glauber Costa <glo...@cloudius-systems.com> wrote:
On Sun, Apr 27, 2014 at 11:32 PM, Haoyi Li <haoy...@gmail.com> wrote:
Yessss it works
I've successfully run a version of www.scala-js-fiddle.com on OSV on qemu! That comprises
- Akka 2.3.0
- a spray-routing webserver
- the Scala compiler
- the ScalaJS compiler
- the Google Closure CompilerOf note, it seems to take an order of magnitude more time to boot the application on Qemu/OSV v.s. running locally on my OSX machine or on Ubuntu/EC2; the boot time literally goes from 30 seconds to 10 minutes, and a hot-compile from 5 seconds to 110 seconds. It's a very-heavy-CPU-bound application to boot for it to take 30 seconds on my i7 laptop.Yes, if you are using plain qemu with no other kind of acceleration, that whatever you run on top of that is supposed to get extremely slow, and definitely matches the numbers you are seeing. This is because qemu in that case won't be virtualizing anything, but emulating every instruction issued.
Right. Using QEMU on OS X is just for testing purposes, you cannot really run real applications with.Is VirtualBox or VMware not working for you?- Pekka
--
You received this message because you are subscribed to the Google Groups "OSv Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osv-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Cool, that worked! The only thing remaining is to get the image onto EC2 somehow...
Where is this scripts/ folder you're talking about?
On Tue, Apr 29, 2014 at 10:09 AM, Haoyi Li <haoy...@gmail.com> wrote:Try
Cool, that worked! The only thing remaining is to get the image onto EC2 somehow...>scripts/upload-ec2.sh --help
Ah, I'm having trouble getting to my VMware VM now, even though it worked before. running ifconfig on my host shows this, and I can ping it, but sshing fails with a Permission denied (publickey) and I can't reach it in the browser. I have no idea why it worked before. Is there a canonical way of getting the guest IP address that is assigned when you run capstan run?
I'm also getting intermittent err socket errors when I capstan run. They go away when I run a second time, but it seems odd that they're happening at all
Also, arp -an worked for finding the VM's IP (turns out it changes each time I boot up OSv using -p vmw) but now I have another problem:
I'm seeing the network transfer speed of talking to the VM be reaaaaally slow. I estimate about 3-4kb/s, which means it takes on the order of 1 minute to load a typical web page. Is that something to be expected, and is there any way around it?
On Tue, Apr 29, 2014 at 9:00 PM, Haoyi Li <haoy...@gmail.com> wrote:I'm also getting intermittent err socket errors when I capstan run. They go away when I run a second time, but it seems odd that they're happening at allhaoyi-mbp:scala-js-fiddle haoyi$ /usr/local/Cellar/go/1.2.1/bin/capstan run -p vmw -f 8080:8080Created instance: i1398830381err socketdial unix /Users/haoyi/.capstan/instances/vmw/i1398830381/osv.sock: no such file or directory
On Tue, Apr 29, 2014 at 3:56 PM, Haoyi Li <haoy...@gmail.com> wrote:> We really should add that capability to Capstan like we have with GCE.
If you do, be sure to re-post here so I'll know to update capstan so I can use it =)On Tue, Apr 29, 2014 at 1:25 PM, Nadav Har'El <n...@cloudius-systems.com> wrote:On Tue, Apr 29, 2014 at 8:15 PM, Haoyi Li <haoy...@gmail.com> wrote:
Ah, I'm having trouble getting to my VMware VM now, even though it worked before. running ifconfig on my host shows this, and I can ping it, but sshing fails with a Permission denied (publickey) and I can't reach it in the browser. I have no idea why it worked before. Is there a canonical way of getting the guest IP address that is assigned when you run capstan run?Just a silly idea - can you try running "arp" on the host and seeing if you can find your VM there?Another silly guess: The "permission denied" might also mean you reached the intended ssh server, it just didn't acccept your public key. Did you follow the correct instructions (I don't know what those are...) to get your public key on the guest?
> We probably should print the ip address of the guest by default.That would be wonderful!> This is of course not expected at all ;-) Something went wrong.If it helps, the VM still boots and runs my application's power-on-self-test at full speed, and the web pages *work*. They're just reaaaallyyy slowwww to download.
On Tue, Apr 29, 2014 at 10:22 PM, Asias He <as...@cloudius-systems.com> wrote:
On Wed, Apr 30, 2014 at 12:09 PM, Haoyi Li <haoy...@gmail.com> wrote:
Also, arp -an worked for finding the VM's IP (turns out it changes each time I boot up OSv using -p vmw) but now I have another problem:We probably should print the ip address of the guest by default.I'm seeing the network transfer speed of talking to the VM be reaaaaally slow. I estimate about 3-4kb/s, which means it takes on the order of 1 minute to load a typical web page. Is that something to be expected, and is there any way around it?This is of course not expected at all ;-) Something went wrong.Takuya, comments?On Tue, Apr 29, 2014 at 9:00 PM, Haoyi Li <haoy...@gmail.com> wrote:I'm also getting intermittent err socket errors when I capstan run. They go away when I run a second time, but it seems odd that they're happening at allhaoyi-mbp:scala-js-fiddle haoyi$ /usr/local/Cellar/go/1.2.1/bin/capstan run -p vmw -f 8080:8080Created instance: i1398830381err socketdial unix /Users/haoyi/.capstan/instances/vmw/i1398830381/osv.sock: no such file or directory
On Tue, Apr 29, 2014 at 3:56 PM, Haoyi Li <haoy...@gmail.com> wrote:> We really should add that capability to Capstan like we have with GCE.
If you do, be sure to re-post here so I'll know to update capstan so I can use it =)On Tue, Apr 29, 2014 at 1:25 PM, Nadav Har'El <n...@cloudius-systems.com> wrote:On Tue, Apr 29, 2014 at 8:15 PM, Haoyi Li <haoy...@gmail.com> wrote:
Ah, I'm having trouble getting to my VMware VM now, even though it worked before. running ifconfig on my host shows this, and I can ping it, but sshing fails with a Permission denied (publickey) and I can't reach it in the browser. I have no idea why it worked before. Is there a canonical way of getting the guest IP address that is assigned when you run capstan run?Just a silly idea - can you try running "arp" on the host and seeing if you can find your VM there?Another silly guess: The "permission denied" might also mean you reached the intended ssh server, it just didn't acccept your public key. Did you follow the correct instructions (I don't know what those are...) to get your public key on the guest?
--Asias
> Can you run 'time http://192.168.122.89:8000/os/memory/free' ?Running it on the host machine doesnt do anything, whether using the IP you gave me or the IP of the boxhaoyi-mbp:scala-js-fiddle haoyi$ time http://192.168.122.89:8000/os/memory/free-bash: http://192.168.122.89:8000/os/memory/free: No such file or directoryhaoyi-mbp:scala-js-fiddle haoyi$ time http://172.16.244.162:8000/os/memory/free-bash: http://172.16.244.162:8000/os/memory/free: No such file or directory> Can you please summaries all your process on fresh wiki page and we'll try to work on the problematic items?
Uhh, clone this repo:And build and run it with -p vmw (as described in the readme, you need SBT installedt). Then navigate to the IP port 8080 of the vm, and you can see it slowly trickling down the javascript for the page. You can run it using one of the other commands given (also on the readme) and see it load much much faster.Not sure if there's anything else you want to know
Is there any simple HTTP server example that I can pull down and try out? Otherwise I'm gonna start minimizing to see if I can come up with the simplest example which exhibits this slowness. Since it worked for you, though, I bet the problem isn't in my Scala code but somewhere in how I set up OSv/VMware
Is there any simple HTTP server example that I can pull down and try out? Otherwise I'm gonna start minimizing to see if I can come up with the simplest example which exhibits this slowness. Since it worked for you, though, I bet the problem isn't in my Scala code but somewhere in how I set up OSv/VMware
> Can you run 'time http://192.168.122.89:8000/os/memory/free' ?Running it on the host machine doesnt do anything, whether using the IP you gave me or the IP of the boxhaoyi-mbp:scala-js-fiddle haoyi$ time http://192.168.122.89:8000/os/memory/free-bash: http://192.168.122.89:8000/os/memory/free: No such file or directoryhaoyi-mbp:scala-js-fiddle haoyi$ time http://172.16.244.162:8000/os/memory/free-bash: http://172.16.244.162:8000/os/memory/free: No such file or directory

Yeah, looks like port forwarding isn't working at all; I can reach the vm at the 172 address even without the -f flag, and adding the -f flag doesn't let me access it on local host like I think it should. I'm pretty sure the -f 8080:8080 flag isn't doing anything.

-n bridge didn't seem to do anything. Am I doing something wrong? I can still only reach the VM at the 172.XX.YY.ZZ address, and downloading stuff from it remains extremely slow, and I can't hit the :8000/os/memory/free URL either.