[9fans] plan9 on qemu and 9vx
Hello, I have a Slackware installation running on my box. On top of it, I often use qemu to run plan9, but it's inconvenient to constantly keep track of the things I do there, like C programs, because many of them are also useful under Slackware (then I compile them under linux with p9p's 9c). So the approach I've taken is to run 9vx and invoke % aux/listen1 -tv tcp!192.168.1.2!12345 /bin/exportfs from there. Then, from plan9 inside qemu, I run % import -A tcp!192.168.1.1!12345 /usr/hugo /n/temp and then bind anything I want inside /n/temp to my namespace in plan9. That way I don't need to keep track of anything I do inside qemu. But the next step I want to take is to run just a terminal with qemu, probably using the plan9 iso image, and have 9vx as my fileserver. Do you know if this is even possible? I'm not sure it is since 9vx is not actually plan9. Can you offer me some hints on how to do it? Saludos a todos, -- Hugo
Re: [9fans] sdiahci.c driver
Hi eric i'm frustrated with ahci problems. i think many of them have been fixed, but there are good reasons for the lag. and many are my fault. Don't be so frastrated. If you didn't work on ahci driver, we cannot use SATA drive as fast one. I'm very thank you. I didn't use your new driver, because I'd like to check the present state of being distributed Plan 9 system. Why so little number of people tries it? I notice another problem, too. The vga cannot be used as more than 8 depth, which I tested only nvidia and vesa drivers. Anyone tested it? Kenji
Re: [9fans] plan9 on qemu and 9vx
On 12/03/2010 10:53, hugo rivera wrote: Hello, I have a Slackware installation running on my box. On top of it, I often use qemu to run plan9, but it's inconvenient to constantly keep track of the things I do there, like C programs, because many of them are also useful under Slackware (then I compile them under linux with p9p's 9c). So the approach I've taken is to run 9vx and invoke % aux/listen1 -tv tcp!192.168.1.2!12345 /bin/exportfs from there. Then, from plan9 inside qemu, I run % import -A tcp!192.168.1.1!12345 /usr/hugo /n/temp and then bind anything I want inside /n/temp to my namespace in plan9. That way I don't need to keep track of anything I do inside qemu. But the next step I want to take is to run just a terminal with qemu, probably using the plan9 iso image, and have 9vx as my fileserver. Do you know if this is even possible? I'm not sure it is since 9vx is not actually plan9. Can you offer me some hints on how to do it? Saludos a todos, I use u9fs and run it on my Linux / BSD machines using tcpserver (though inetd works too) I run them with -a none :) but it's a private LAN. Auth does work but I don't use it. You can also run u9fs on the end of ssh, e.g. tcpserver localhost 564 ssh remote u9fs -a none see http://man.cat-v.org/plan_9/4/u9fs for more details
Re: [9fans] sdiahci.c driver
I didn't use your new driver, because I'd like to check the present state of being distributed Plan 9 system. Why so little number of people tries it? I am using Eriks SATA driver I notice another problem, too. The vga cannot be used as more than 8 depth, which I tested only nvidia and vesa drivers. Anyone tested it? I have 1600x1200x16 at work on an nvidia card. -Steve
Re: [9fans] sdiahci.c driver
I have 1600x1200x16 at work on an nvidia card. i have not been able to get 32-bit modes working with vesa, but 16 bit modes do alright. i think there may be some sort of (frame) buffer calculation that's off. large images can crash one's terminal, too, even in 16-bit mode. previously i had an nvidia card working in 1600x1200x32, but that was a agp card. i don't have any agp systems left. - erik
Re: [9fans] plan9 on qemu and 9vx
2010/3/12 hugo rivera uai...@gmail.com: But the next step I want to take is to run just a terminal with qemu, Since it looks like you have the option, I would not suggest to use a qemu image as your terminal. Instead, make 9vx or drawterm your terminal and you will have access to your host file system for free (and to the clipboard!). I have not used qemu images extensively, but the few times I have, I found much better to use drawterm or cpu into it from 9vx than running rio inside qemu. -- - yiyus || JGL . 4l77.com
Re: [9fans] plan9 on qemu and 9vx
Unless there's some compelling reason to use qemu (I can't think of one) why not just use 9vx exclusively? I've made a transition over the years: qemu xen kvm lguest 9vx And am stuck at 9vx ... ron
Re: [9fans] plan9 on qemu and 9vx
9vx crashes on me quite often, and qemu doesn't. That's the only reason I use qemu, otherwise I'd also be stuck with 9vx too :-) 2010/3/12 ron minnich rminn...@gmail.com: Unless there's some compelling reason to use qemu (I can't think of one) why not just use 9vx exclusively? I've made a transition over the years: qemu xen kvm lguest 9vx And am stuck at 9vx ... ron -- Hugo
[9fans] sam complete filenames with Ins/ctrl-f
Hello, I'd appreciate if sam completed filenames with ctrl-d/Ins as rio or acme does. Can it? Thanks Ruda
Re: [9fans] omap3 notebook
On 12 Mar 2010, at 05:17, ron minnich wrote: http://www.alwaysinnovating.com/home/ $400 but it has a long backlog it seems. ron Very nice looking little thing and the internal USB is a great idea. I almost got to saying I want one, but I started comparing it to my Zaurus which was about that price some years ago. For my purposes the Touch Book has half again the clock speed and double the battery life of my old Z, plus a nicer screen and keyboard. The latter two aren't worth it not fitting in my pocket, although I'm sure they will be to others. The Touch Book also has 8 times the RAM my Zaurus has, but what would you use 512MB for in a Plan 9 terminal-like device? I feel a bit bad about running it down because I think the company shows a lovely attitude in trying to support as many Linux distros as they can, but the 512MB just says to me, this was made for the wonderful Technologies of XML and object oriented design.
Re: [9fans] plan9 on qemu and 9vx
On Fri, Mar 12, 2010 at 9:02 AM, hugo rivera uai...@gmail.com wrote: 9vx crashes on me quite often, and qemu doesn't. That's the only reason I use qemu, otherwise I'd also be stuck with 9vx too :-) GSOC proposal: build tool to make 9vx failures easier and improve the reliability of 9vx ron
[9fans] printing floating point numbers
I'm working on (re)writing some utilies for geospatial work on Plan9, there are lots of floating point numbers (a file outlining the USGS quadrangles for the state of Maine has about 60k). With the current implementation this takes a long time. Maybe I should switch to a binary format (but that's part of what I'm trying to get away from!). Basically, do folks consider it possible to improve speed while keeping or increasing the precision? A very simple implementation is accurate to ~15 digits, the current one is to 18 digits (though there are some rounding errors). In ways it would be nice to print stored numbers exactly. Yet numbers like 2⁻¹⁰²²+2⁻¹⁰⁷⁴ (767 digits) are stored exactly... 2.2250738585072018771558785585789482407880088486837041956131300312119688603996006965297904292212628858639037013670281908017171296072711910355127227413175152199055740043138804567803233377539881639177387328959246074229270113078053813397081653361296447449529789521218979090783852583365901851789618799885150427514782636076021680436220311292700454832073964845713103912225963935608322440623896907276890186717054549275173986589324810401738228328251245795065655738191038008646911615828719989708647293221449796971546706720399791990809160347625980385995424739847678861180095072511543762389603716215171729816011544604359531284325406441938645324905389137795680915804792405099227413854274942620542640408839836919187418172987793340279242767544565229087538682506419718265533447265625e-308 The current implementation just prints the first 18 digits. Thoughts? Tristan -- All original matter is hereby placed immediately under the public domain.
Re: [9fans] omap3 notebook
Yeah the touchbook,it can run some ported iPhone applications it seems too interestingly. Dave On Fri, Mar 12, 2010 at 10:18 AM, Ethan Grammatikidis eeke...@fastmail.fmwrote: On 12 Mar 2010, at 05:17, ron minnich wrote: http://www.alwaysinnovating.com/home/ $400 but it has a long backlog it seems. ron Very nice looking little thing and the internal USB is a great idea. I almost got to saying I want one, but I started comparing it to my Zaurus which was about that price some years ago. For my purposes the Touch Book has half again the clock speed and double the battery life of my old Z, plus a nicer screen and keyboard. The latter two aren't worth it not fitting in my pocket, although I'm sure they will be to others. The Touch Book also has 8 times the RAM my Zaurus has, but what would you use 512MB for in a Plan 9 terminal-like device? I feel a bit bad about running it down because I think the company shows a lovely attitude in trying to support as many Linux distros as they can, but the 512MB just says to me, this was made for the wonderful Technologies of XML and object oriented design.
Re: [9fans] printing floating point numbers
The current implementation just prints the first 18 digits. 18 digits are sufficient to reconstruct exactly the same bit representation when you run the text back through strtod. All those extra digits may be precise but they're not necessary and probably not accurate. Russ
Re: [9fans] plan9 on qemu and 9vx
On Fri, Mar 12, 2010 at 5:53 PM, ron minnich rminn...@gmail.com wrote: Unless there's some compelling reason to use qemu (I can't think of one) Debugging the kernel. -- - curiosity sKilled the cat
Re: [9fans] plan9 on qemu and 9vx
On Fri, Mar 12, 2010 at 3:04 PM, Gorka Guardiola pau...@gmail.com wrote: On Fri, Mar 12, 2010 at 5:53 PM, ron minnich rminn...@gmail.com wrote: Unless there's some compelling reason to use qemu (I can't think of one) Debugging the kernel. believe it or not, I even do that on 9vx. For many things, esp. things in port, it's good enough for me. In fact I did a curried pipe in 9vx just to try some things out. ron
[9fans] watching plumber
Hello, I wanted to add a plumbing rule. I added this: type is text data matches '[^{}]+' data matches '(figs/([a-zA-Z0-9[\].-_]*/)*)([a-zA-Z0-9.-_]+)' arg isdir $1 plumb start grep $2 $1/_source | sed -e 's/\.eps/.g/' | \ plumb -i -d edit However, it doesn't work. Is there any simple way how one can analyze what is wrong? I.e. to see that some rules are matched, others not, so that one can get the idea where the problem is (how far in the rules one gets)? Also. When having a rule like this data matches '(abc(def)*)(ghi)' what is going to be in $1, $2... Is ghi the contents of $2 or not? The plumber's behaviour I want to achieve is quite difficult to explain, nonetheless: for a text in an editor like {figs/10[CuNi]/Cxy} I want to find a line in figs/10[CuNi]/_source containing Cxy, it will be something like /abc/Cxy.eps and I really want to open a file /abc/Cxy.g in the editor. Thanks for any comments! Ruda
Re: [9fans] plan9 on qemu and 9vx
9vx crashes on me quite often, and qemu doesn't. That's the only reason I use qemu, otherwise I'd also be stuck with 9vx too :-) Are you running the latest from sources, or are you using the prebuilt binary? There are important stability fixes in the sources that aren't in the binary (unless its been updated recently). Hugo Tim Newsham | www.thenewsh.com/~newsham | thenewsh.blogspot.com
Re: [9fans] plan9 on qemu and 9vx
believe it or not, I even do that on 9vx. For many things, esp. things in port, it's good enough for me. In fact I did a curried pipe in 9vx just to try some things out. i find development to go very fast on plan 9. now that /dev/reboot $kern is working for me, i can restart the kernel in less time than it takes the monitor to reset. (0.5s) of course kenc is faster than gcc. the added benefits are that i can debug device drivers and use regular kenc style or gcc's different % rounding and the little differences between 9vx and the regular kernel. i've found it very comfortable for building some rather large systems. - erik
Re: [9fans] watching plumber
what is going to be in $1, $2... Is ghi the contents of $2 or not? this is easy to test: ; echo abcdefghi | sed 's/(abc(def)*)(ghi)/\1/' abcdef ; echo abcdefghi | sed 's/(abc(def)*)(ghi)/\2/' def ; echo abcdefghi | sed 's/(abc(def)*)(ghi)/\3/' ghi - erik
Re: [9fans] watching plumber
On 13 March 2010 00:54, erik quanstrom quans...@quanstro.net wrote: what is going to be in $1, $2... Is ghi the contents of $2 or not? this is easy to test: ; echo abcdefghi | sed 's/(abc(def)*)(ghi)/\1/' abcdef ; echo abcdefghi | sed 's/(abc(def)*)(ghi)/\2/' def ; echo abcdefghi | sed 's/(abc(def)*)(ghi)/\3/' ghi - erik Ok, thats fine. But ;9 echo abcdefdffghi | 9 sed 's/(abc(d?f)*)(ghi)/\1/' abcdefdffghi ;9 echo abcdefdffghi | 9 sed 's/(abc(d?f)*)(ghi)/\2/' abcdefdffghi ;9 echo abcdefdffghi | 9 sed 's/(abc(d?f)*)(ghi)/\3/' abcdefdffghi ;9 echo abcdefdffghi | 9 sed 's/(abc(d?f)*)(ghi)/\4/' abcdefdffghi ;9 echo abcdefdffghi | 9 sed 's/(abc(d?f)*)(ghi)/\5/' abcdefdffghi ;9 echo abcdefdffghi | 9 sed 's/(abc(d?f)*)(ghi)/\6/' abcdefdffghi this I don't understand... maybe it's too late for me... Thanks Ruda
Re: [9fans] watching plumber
Ok, thats fine. But ;9 echo abcdefdffghi | 9 sed 's/(abc(d?f)*)(ghi)/\1/' this I don't understand... maybe it's too late for me... you're re doesn't match at all. therefore no substitutation is made. perhaps it would be easier to see with this formulation: 9 echo abcdefdffghi | 9 sed -n 's/(abc(d?f)*)(ghi)/\1/p' - erik
Re: [9fans] plan9 on qemu and 9vx
i find development to go very fast on plan 9. depends how many machines you have. gcc's different % rounding hmm? russ
Re: [9fans] plan9 on qemu and 9vx
gcc's different % rounding hmm? i'm sorry. totally wrong. i thought i remembered and i didn't. it was a different problem entirely. i found i had to make loads of changes like the following /sys/src/9/ip/devip.c:47,53 - /mnt/term/home/quanstro/hg2/vx32.old/src/9vx/a/ip/devip.c:47,53 #define TYPE(x) ( ((ulong)(x).path) Masktype ) #define CONV(x) ( (((ulong)(x).path) Shiftconv) Maskconv ) #define PROTO(x) ( (((ulong)(x).path) Shiftproto) Maskproto ) - #define QID(p, c, y) ( ((p)(Shiftproto)) | ((c)Shiftconv) | (y) ) + #define QID(p, c, y) ( ((uint)(p)(Shiftproto)) | ((uint)(c)Shiftconv) | (y) ) static char network[] = network; - erik
Re: [9fans] sam complete filenames with Ins/ctrl-f
The problem is that samterm, which interprets keystrokes, doesn't have access to the files. It would be a protocol change that bounces a message off the server. Doable but not compatible. -rob