Re: [9fans] sysrfork fp bug?

2011-11-21 Thread erik quanstrom
On Mon Nov 21 18:14:43 EST 2011, charles.fors...@gmail.com wrote: > it only needs to save the non-register state (ie, the control register > you'd wondered about), > but it's free to do more if that's somehow easier, even if the values > will never be used. > on BG/P, the equivalent function does:

Re: [9fans] sysrfork fp bug?

2011-11-21 Thread Charles Forsyth
a common cause for a value being left on the fp stack (although your diagnostic said "stack underflow" so i didn't suggest it originally) is that a function returns float or double but isn't declared as such at the call site. (i had that problem once with dot or dotty.) the function will leave the

Re: [9fans] sysrfork fp bug?

2011-11-21 Thread Charles Forsyth
it only needs to save the non-register state (ie, the control register you'd wondered about), but it's free to do more if that's somehow easier, even if the values will never be used. on BG/P, the equivalent function does: * If there isn't a pending exception, just save the * init

Re: [9fans] 9vx instability

2011-11-21 Thread erik quanstrom
On Mon Nov 21 18:03:32 EST 2011, skip.tavakkol...@gmail.com wrote: > because 9fans not only agree to disagree, they also disagree to agree :) i'll agree to that! - erik

Re: [9fans] sysrfork fp bug?

2011-11-21 Thread erik quanstrom
/* don't penalize the child, it hasn't done FP in a note handler. */ p->fpstate = up->fpstate & ~FPillegal; [...] ready(p); sched(); return pid; we do know that fp->state is FPinactive (because of rfork), but it seems like this isn't doing what was intended,

Re: [9fans] 9vx instability

2011-11-21 Thread Skip Tavakkolian
because 9fans not only agree to disagree, they also disagree to agree :) On Mon, Nov 21, 2011 at 2:44 PM, Anton wrote: > Yep, with 3.1 9vx runs fine for an hour already. However, I want to > try installing Plan 9 natively. Tomorrow. Btw, why there are 9atom and > 9front? > I mean, why they aren't

Re: [9fans] 9vx instability

2011-11-21 Thread Anton
Yep, with 3.1 9vx runs fine for an hour already. However, I want to try installing Plan 9 natively. Tomorrow. Btw, why there are 9atom and 9front? I mean, why they aren't joined together? What the difference between them? 2011/11/22 Skip Tavakkolian > i'll modify what i said to "... suspect the

Re: [9fans] sysrfork fp bug?

2011-11-21 Thread erik quanstrom
On Mon Nov 21 10:34:15 EST 2011, charles.fors...@gmail.com wrote: > registers are dead on entry to a function, so there's no point in saving > particular values, because they won't be used. on an amd64, however, > the kernel should > reset the FP-used flag, to cause the preset values to be set in t

[9fans] Plan 9 Related Work

2011-11-21 Thread Jani Lahtinen
I haven't written much here but I have been playing with Plan 9, Plan 9 Port, and Inferno for quite some time now, In the current economic times I feel I should not leave a stone unturned. I am looking for work, either parttime or permanent, hopefully related to Plan 9, as I have developed some aff

Re: [9fans] 9vx instability

2011-11-21 Thread Skip Tavakkolian
i'll modify what i said to "... suspect the host os first". it's been my experience that every autoupdate on Ubuntu and Windows brings in its share of new bugs (hopefully less than the number of bugs it fixes) On Mon, Nov 21, 2011 at 12:32 PM, erik quanstrom wrote: > On Mon Nov 21 15:20:58 EST 2

Re: [9fans] 9vx instability

2011-11-21 Thread yy
2011/11/21 Anthony Martin : > I had this happen to me a few times but I never > took the time to track it down.  I haven't had > it happen since I upgraded my kernel to 3.1. I can confirm this. I don't know how to be sure it is solved, but the problem used to appear after a few minutes of use and,

Re: [9fans] 9vx instability

2011-11-21 Thread erik quanstrom
On Mon Nov 21 15:20:58 EST 2011, skip.tavakkol...@gmail.com wrote: > i run 9vx occasionally. a while back i built 9vx from ron's > repository. i was having problems with it under Ubuntu 10.04 x86_64, > where sometimes both cores were pegged at 100%; it was a problem with > linux (judging by ubunt

[9fans] 9atom

2011-11-21 Thread erik quanstrom
i realize that ftp is giving troubles. i'm not quite sure what the issue is. it might be some wierdness in my modem. in any event, http :// ftp.quanstro.net/other/9atom.iso. bz2 is an alternative. (remove spaces) - erik

Re: [9fans] 9vx instability

2011-11-21 Thread Skip Tavakkolian
i run 9vx occasionally. a while back i built 9vx from ron's repository. i was having problems with it under Ubuntu 10.04 x86_64, where sometimes both cores were pegged at 100%; it was a problem with linux (judging by ubuntu mailing lists). without changing 9vx, things got stable after 10.10 (curr

Re: [9fans] 9vx instability

2011-11-21 Thread Federico G. Benavento
On Nov 21, 2011, at 9:14 AM, Anton wrote: > > What are the problems with trying to boot it natively? > As you correctly suggested, my wireless card isn't supported and connecting > laptop through the Ethernet cable to my router located in another room is > somewhat inconvenient. Also, I'm not

Re: [9fans] 9vx instability

2011-11-21 Thread andrey mirtchovski
I can crash 9vx (latest from rminnich's repository) with regularity just by trying to compile Go's 'cmath' package. hosted on OSX, 7 cpus recognized by 9vx: segment 0x3f00 0x4000 segment 0x1000 0x5a000 segment 0x5a000 0x6b000 segment 0x6b000 0x263000 1580 8g: unhandled fault va=162 [110001

Re: [9fans] 9vx instability

2011-11-21 Thread Charles Forsyth
>> just normal usage, mk install and such in the nix release, and there >> are times that memory corruption happens. There's been a race in there >> forever, and sometimes you hit it, and things start to go south. how many processors? oh. and which host system?

Re: [9fans] 9vx instability

2011-11-21 Thread Francisco J Ballesteros
funny, it's working like a rock here. just fine. maybe I've been lucky. On Mon, Nov 21, 2011 at 7:39 PM, ron minnich wrote: > just normal usage, mk install and such in the nix release, and there > are times that memory corruption happens. There's been a race in there > forever, and sometimes you

Re: [9fans] 9vx instability

2011-11-21 Thread ron minnich
just normal usage, mk install and such in the nix release, and there are times that memory corruption happens. There's been a race in there forever, and sometimes you hit it, and things start to go south. ron

Re: [9fans] 9vx instability

2011-11-21 Thread Charles Forsyth
what do you do??? On 21 November 2011 10:24, ron minnich wrote: > but it is also pretty easy > for me to drive it into a corner such that simple commands don't have > repeatable results -- memory corruption problems start to appear.

Re: [9fans] 9vx instability

2011-11-21 Thread ron minnich
9vx is very nice, I use it all the time, but it is also pretty easy for me to drive it into a corner such that simple commands don't have repeatable results -- memory corruption problems start to appear. If you are having troubles, it is not necessarily your fault, and you may be better off with a

Re: [9fans] 9vx instability

2011-11-21 Thread Jens Staal
On 11/21/11 18:09, Anton wrote: > If you're on linux, you should consider kvm + kvmtool + plan 9 AFAIK, kvmtool wasn't integrated into 3.1. Is it stable/mature enough to run plan 9? > i have to say my experience is quite different Hm, that's odd. 9vx runs ok in ubuntu in tinycore, but not in a

Re: [9fans] 9vx instability

2011-11-21 Thread Anton
> If you're on linux, you should consider kvm + kvmtool + plan 9 AFAIK, kvmtool wasn't integrated into 3.1. Is it stable/mature enough to run plan 9? > i have to say my experience is quite different Hm, that's odd. 9vx runs ok in ubuntu in tinycore, but not in arch. Maybe the thing is in Arch's k

Re: [9fans] 9vx instability

2011-11-21 Thread erik quanstrom
> my only practical problem so far is DNS, which i suppose must be > single-threaded. my experiment in wiring dns to a mach didn't work; it was less stable than before. mttf measured in seconds. - erik

Re: [9fans] 9vx instability

2011-11-21 Thread Charles Forsyth
i have to say my experience is quite different. % uname -aLinux pensomolto 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686 i686 i386 GNU/Linux ubuntu 11.10 but note that i use gnome not unity (because i want to use it). i use 9vx, and have done for years. i use it as both a devel

Re: [9fans] 9vx instability

2011-11-21 Thread ron minnich
If you're on linux, you should consider kvm + kvmtool + plan 9. vx32 is incomplete. It has many problems. Nobody's had the time to really fix it. It's nice that it works but you should not assume that it's a solid piece of software; it's not. ron

Re: [9fans] sysrfork fp bug?

2011-11-21 Thread erik quanstrom
On Mon Nov 21 10:34:15 EST 2011, charles.fors...@gmail.com wrote: > registers are dead on entry to a function, so there's no point in saving > particular values, because they won't be used. on an amd64, however, > the kernel should > reset the FP-used flag, to cause the preset values to be set in t

Re: [9fans] sysrfork fp bug?

2011-11-21 Thread erik quanstrom
also, the getfcr(2) man page doesn't say if either the fcr or fsr is inherited across fork. - erik

Re: [9fans] sysrfork fp bug?

2011-11-21 Thread Charles Forsyth
registers are dead on entry to a function, so there's no point in saving particular values, because they won't be used. on an amd64, however, the kernel should reset the FP-used flag, to cause the preset values to be set in the high FP registers if the fork'd process does touch the FP. On 21 Novem

[9fans] sysrfork fp bug?

2011-11-21 Thread erik quanstrom
sysrfork() does *not* do a procsave before forking. thus the floating point registers in the new process are just going to be a copy of whatever was last saved, and perhaps nothing. on my atom system (but not some others), this attached program does fault. i wrote a bit of it in assembler to con

Re: [9fans] 9vx instability

2011-11-21 Thread Jens Staal
2011/11/21 Sergey Kish : > Jens, > vx32-hg is already in AUR > http://aur.archlinux.org/packages.php?ID=28147Maybe it should use > rminnich/vx32 repo by default > /_hgroot/c_hgroot="https://bitbucket.org/rminnich/vx32";. http://aur.archlinux.org/packages.php?ID=28147 uses http://code.swtch.com/vx3

Re: [9fans] 9vx instability

2011-11-21 Thread Sergey Kish
I love Gmail, vx32-hg is already in AUR http://aur.archlinux.org/packages.php?ID=28147 Maybe it should use rminnich/vx32 repo by default /_hgroot/c _hgroot="https://bitbucket.org/rminnich/vx32"; . On Mon, Nov 21, 2011 at 4:46 PM, Sergey Kish wrote: > Jens, > vx32-hg is already in AUR > http:/

Re: [9fans] 9vx instability

2011-11-21 Thread Sergey Kish
Jens, vx32-hg is already in AUR http://aur.archlinux.org/packages.php?ID=28147Maybe it should use rminnich/vx32 repo by default /_hgroot/c_hgroot="https://bitbucket.org/rminnich/vx32";. On Mon, Nov 21, 2011 at 1:17 PM, Jens Staal wrote: > On 11/21/11 12:01, yy wrote: >>> >>> 9vx-hg (checked out 20

Re: [9fans] 9vx instability

2011-11-21 Thread Anton
Wow, so many replies :) > have you considered running plan 9 from within virtualbox? I've not tried it yet, since the are a lot mentions that Plan 9 is slow under vb, but I'll try it if nothing helps. > What are the problems with trying to boot it natively? As you correctly suggested, my wirele

Re: [9fans] 9vx instability

2011-11-21 Thread yy
2011/11/21 Jens Staal : > What I would like to know is if you can boot a plan9 system from iso via 9vx > as "persistent" partition whereas changes are saved to another directory (so > basically setting up a union mount between the iso and a directory) - > alternatively specifying an alternative pat

Re: [9fans] 9vx instability

2011-11-21 Thread Jens Staal
On 11/21/11 12:01, yy wrote: 9vx-hg (checked out 2011.11.17) - cmd line (9vx -r 9front -u glenda) 9front iso image - 9front-1131.664b953bfdde (I've copied it's contents and `chmod -R u+w`ed it) If you are using a modern version of 9vx (rminnich's repository at bitbucket) you don't need to copy t

Re: [9fans] 9vx instability

2011-11-21 Thread yy
2011/11/21 Anton : > Linux hippo 3.0-ARCH #1 SMP PREEMPT Wed Oct 19 12:14:48 UTC 2011 i686 > Intel(R) Core(TM) Duo CPU T2600 @ 2.16GHz GenuineIntel GNU/Linux (Archlinux) You may try booting an older kernel. I've had similar problems since I updated my main arch system to linux 3.0, but I've not h

Re: [9fans] 9vx instability

2011-11-21 Thread Anthony Martin
Anton once said: > However, as it won't work on my laptop natively, i'm > forced to use 9vx (running in kvm is too slow). It has > one magor drawback - it is freezing my entire system > after some random time. Symptoms are - no reaction on > input (mouse/keyboard), no changes in output (screen is

Re: [9fans] 9vx instability

2011-11-21 Thread Akshat Kumar
What are the problems with trying to boot it natively (by the way, you probably won't be able to drive the wireless card, if you do get it to boot native)? Have you tried Erik Quanstro's 9atom kernel? ak On Mon, Nov 21, 2011 at 12:31 AM, Anton wrote: > Hello all, > Recently I've discovered Plan

Re: [9fans] 9vx instability

2011-11-21 Thread Alexander Kapshuk
have you considered running plan 9 from within virtualbox? plan 9 seems to be fairly responsive running within the latest version of virtualbox on debian squeeze here. On Mon, Nov 21, 2011 at 10:31 AM, Anton wrote: > Hello all, > > Recently I've discovered Plan 9 and I'm fascinated by it's num

[9fans] 9vx instability

2011-11-21 Thread Anton
Hello all, Recently I've discovered Plan 9 and I'm fascinated by it's numerous beauties, and I want to try it for more or less regular use, probably port something. However, as it won't work on my laptop natively, i'm forced to use 9vx (running in kvm is too slow). It has one magor drawback - it