Re: [9fans] a bit OT, programming style question

2009-04-09 Thread erik quanstrom
> $ echo $BASH_VERSION > 4.0.10(2)-release > $ set|wc > 72 1062107 if this is the criteria, plan 9 loses: ; printenv|wc 73 2102417 - erik p.s. ; cat /bin/printenv #!/bin/rc rfork en cd /env for(i in *){ if(! test -s $i) echo $i ^ '=()'

Re: [9fans] extensions of "interest"

2009-04-09 Thread erik quanstrom
> Makes perfect sense for Chapman's purposes. Replace steel > with aluminium. Fiberglass instead of sheet metal and so on. > Unfortunately we don't have exact analogs in s/w. We can > only simplicate; we can't add lightness! read ken's code! - erik

Re: [9fans] setting 9vx's sysname

2009-04-09 Thread erik quanstrom
> is there any particular reason 9vx doesn't set sysname to the host's > sysname if it can? is the current behavior depended upon anywhere? > > also, on my system, $terminal is set to "vx32 9vx" at boot, but i > can't find that declaration. what'm i missing? try main.c:/^init0. - erik

Re: [9fans] exportfs security question

2009-04-10 Thread erik quanstrom
> We haven't brought up SSL yet, so Eve can read our exchanged random > numbers... now these values get shoved into SHA-1 (along with the 56 bits of > entropy from Kn derived from p9any authentication) before being used to make > the SSL secrets... but... that doesn't seem to matter much. Eve sees

[9fans] bogus header chars and empty messages, courtesy smtpd

2009-04-11 Thread erik quanstrom
in the process of trying to make smtpd reject email with garbage characters in the headers, i ran headlong into a few long standing smtpd annoyances. smtpd has had an annoying habit of delivering empty messages when bad things happen, like sender timeout. it turns out that the problem is that wri

Re: [9fans] fossil 'halt' command?

2009-04-13 Thread erik quanstrom
On Mon Apr 13 18:55:24 EDT 2009, fors...@terzarima.net wrote: > i'd have thought that soft updates ensure consistency, > but a halt command ensures that all the changes are actually written. i think your point is a good one and definately true (and begs the question of disk caches), but given the

Re: [9fans] NAT implementation

2009-04-15 Thread erik quanstrom
> Hello 9fans. > I'm thinking of writing a NAT implementation for plan 9. I have searched the > archives and I'm not quite sure how to get started. > > As I see it there could be three ways of approaching this: > > 1. User space implementation using ipmux > 2. User space using pkt interfaces in i

Re: [9fans] some measurements in plan 9

2009-04-15 Thread erik quanstrom
On Wed Apr 15 10:55:34 EDT 2009, uai...@gmail.com wrote: > Hi, > I want to compare the memory consumption of two versions of the same > program. I think /proc it's the way to go and acid should give me the > tools to do so, am I right? is there a better way to do so? Just > asking before reading th

Re: [9fans] vgadb woes

2009-04-15 Thread erik quanstrom
> In some of the little I've played with such things, it > has appeared that the VESA report of available modes > does not always include resolutions that are out of > the ordinary, and without that, I doubt the VESA > driver will be able to put it into that mode. Not to > discourage you, but just

Re: [9fans] vgadb woes

2009-04-15 Thread erik quanstrom
On Wed Apr 15 19:32:57 EDT 2009, devon.od...@gmail.com wrote: > Well, that ends up getting my screen to have a bunch of lines through > it, staggered -- so I'm not much better off than I was before. I'm > guessing that's an nVidia driver issue or something. If I had any idea > about video devices,

Re: [9fans] vgadb woes

2009-04-16 Thread erik quanstrom
> >i really need to write a driver for integratede modern intel or ati > >graphics. > > > There is an ati radeon driver for the r100-r300 (at least) by Philippe > Anel, iirc. i guess english precidence rules don't work that well. let me try again integrated modern (intel or ati) graphics. > I

Re: [9fans] web server

2009-04-16 Thread erik quanstrom
yes. there are several web servers, including one in the standard dist. however, rails or merb might be something you'd have to do yourself. - erik

Re: [9fans] web server

2009-04-16 Thread erik quanstrom
> I thought I'd seen a ruby port in the contrib list... > And if merb were just written (portably) in ruby, then, I thought, it > wouldn't have to be that difficult... /n/sources/contrib/fgb/tar/ruby.tgz - erik

Re: [9fans] sources browser script?

2009-04-16 Thread erik quanstrom
that's nice. i wrote a slightly different version of webls to handle coraid's mirror of sources (http://sources.coraid.com) to allow the arguments to always be hidden and to gloss over the differences between source directories and source files. - erik

Re: [9fans] security questions

2009-04-16 Thread erik quanstrom
> The benefit to this approach is that we would have an extremely easy > way to add new constraints as needed (simply create another tunable > pool), without changing the API or interfering with multiple > subsystems, outside of changing malloc calls if needed. The limits > could be checked on a pe

Re: [9fans] Rails? (was Re: web server)

2009-04-16 Thread erik quanstrom
On Thu Apr 16 13:52:22 EDT 2009, devon.od...@gmail.com wrote: > 2009/4/16 hiro <23h...@googlemail.com>: > > What is the advantage of rails anyway? > > I had a quick glance, but still don't really understand it's function. > > MVC development model. Allows you to abstract the data from the code > f

Re: [9fans] To virtualise cpu/fs/auth-servers, or not?

2009-04-16 Thread erik quanstrom
> The plan9-way seems to be to divide the tasks > of running programs, storing files, authenti- > cation and user interaction, to separate > servers or computers. This makes sense in > a large system with many users, but does it > also have appeal in a system with at most a > couple of users (mostl

Re: [9fans] security questions

2009-04-16 Thread erik quanstrom
have you taken a look at the protection measures already built into the kernel like smalloc? > While it may not be perfectly ideal, it allows the administrator to > maintain control over the system. being a system adminstrator, i dislike any ideas that require extra adminstration. for the same r

Re: [9fans] security questions

2009-04-16 Thread erik quanstrom
On Thu Apr 16 17:51:42 EDT 2009, devon.od...@gmail.com wrote: > 2009/4/16 erik quanstrom : > > have you taken a look at the protection measures already > > built into the kernel like smalloc? > > At least in FreeBSD, you can't sleep in an interrupt thread. I suppose

Re: [9fans] security questions

2009-04-16 Thread erik quanstrom
> > plan 9 doesn't have interrupt threads, but that's beside the point. > > > > interrupts are driven by the hardware, not users. so smalloc, which > > is used to allow user space to wait for memory if it is not currently > > available doesn't make any sense. > > My misunderstanding then, as smal

Re: [9fans] sources browser script?

2009-04-16 Thread erik quanstrom
this is what i'm using. it's not as pretty. and the arguments are downright ugly. adding the code to pretty-up the source listings would eliminate the sleeze and ugliness but i didn't want to drag all that code in too. i added this to /lib/httpd.rewrite # sleezy bind /usr/sources /usr/web/source

Re: [9fans] security questions

2009-04-16 Thread erik quanstrom
> > interrupts are quite different. there are lots of things that are > > a bad idea in interrupt context. but one can wakeup a kernel > > proc that's sitting there waiting to deal with all the hair. > > Right, we're saying the same thing backwards. I just am not sure why > smalloc was brought u

Re: [9fans] security questions

2009-04-16 Thread erik quanstrom
On Thu Apr 16 22:18:35 EDT 2009, devon.od...@gmail.com wrote: > > i just stated what i thought the historical situation was. the > > point was only that changing direction will be difficult. > > This thread certainly proves that :) a 9fans thread proves nothing. - erik

Re: [9fans] To virtualise cpu/fs/auth-servers, or not?

2009-04-16 Thread erik quanstrom
On Thu Apr 16 19:08:23 EDT 2009, mirtchov...@gmail.com wrote: > i still like to think of private namespaces as the ultimate > virtualizer: your ns is your "virtual environment", the file server > you're mounting is the "hypervisor". i don't care that it doesn't > simulate actual hardware like xen/

Re: [9fans] security questions

2009-04-17 Thread erik quanstrom
> What if each user can have a separate IP stack, separate > (virtualized) interfaces and so on? already possible, but you do need 1 physical ethernet per ip stack if you want to talk to the outside world. > But you'd have to implement some sort of limits on > oversubcribing (ratio of virtual to

Re: [9fans] security questions

2009-04-17 Thread erik quanstrom
> Dialing remote ports > I don't become a spam relay so some restriction must be in place, > I guess this would require a minor modification to the IP stack. does ip/hogports solve your problem? - erik

Re: [9fans] security questions

2009-04-17 Thread erik quanstrom
> The > virtual memory management is too persuasive to be broken in any > significant way. do you mean pervasive? if you do, i don't buy the argument. it's easy to get lucky when doing concurrent programming with locks, as in the plan 9 kernel. it's easy to get lucky in many cases, and yet have

Re: [9fans] web server

2009-04-17 Thread erik quanstrom
On Fri Apr 17 08:33:12 EDT 2009, urie...@gmail.com wrote: > And then you would need some hideous SQL database. > > As ken said: we have persistent objects, they are called files; and > that is what werc uses. i feel compelled to defend one of my favorite quotes of all time from misapplication. i

Re: [9fans] a bit OT, programming style question

2009-04-17 Thread erik quanstrom
> >> i know of many thousands of plan 9 systems in production right > >> now. > > Erik, you might want to know how many *million* people use Linux ;) > Won't you? the criticisim of plan 9 that i was respnding to was that plan 9 was not used for anything serious or capable of being used in product

Re: [9fans] Help for home user discovering Plan 9

2009-04-17 Thread erik quanstrom
> The Plan9 project started in 1980, took around 9 years to be solid > enough to be usable and that too by the internal and, or lab people > [http://plan9.bell-labs.com/sys/doc/9.html] only. unless one is speaking in geologic terms, there's a significant difference between the "mid-1980s" and 198

Re: [9fans] VMs, etc. (was: Re: security questions)

2009-04-17 Thread erik quanstrom
> In some sense, logically (but not efficiently: read the caveats in the > Plan9 papers; a processor is nothing without tightly coupled memory, so > memory is not a remote pool sharable---Mach!), if you look closely enough, this kind of breaks down. numa machines are pretty popular these days (o

Re: [9fans] VMs, etc. (was: Re: security questions)

2009-04-17 Thread erik quanstrom
> Absolutly, but part of what has changed over the past 20 > years is that the rate at which this local processing power > has grown has been faster than rate at which the processing > power of the rack-mount box in the machine room has > grown (large clusters not withstanding, that is). So the >

Re: [9fans] VMs, etc. (was: Re: security questions)

2009-04-17 Thread erik quanstrom
On Fri Apr 17 14:21:03 EDT 2009, tlaro...@polynum.com wrote: > On Fri, Apr 17, 2009 at 01:29:09PM -0400, erik quanstrom wrote: > > > In some sense, logically (but not efficiently: read the caveats in the > > > Plan9 papers; a processor is nothing without tightly coupled memor

Re: [9fans] VMs, etc. (was: Re: security questions)

2009-04-17 Thread erik quanstrom
> I often tell my students that every cycle used by overhead > (kernel, UI, etc) is a cycle taken away from doing the work > of applications. I'd much rather have my DNA sequencing > application finish in 25 days instead of 30 than to have > the system look pretty during those 30 days. i didn't m

Re: [9fans] Plan9 - the next 20 years

2009-04-17 Thread erik quanstrom
> I can imagine a lot of problems stemming from open files could be > resolved by first attempting to import the process's namespace at the > time of checkpoint and, upon that failing, using cached copies of the > file made at the time of checkpoint, which could be merged later. there's no guarant

Re: [9fans] Plan9 - the next 20 years

2009-04-17 Thread erik quanstrom
> Vidi also seems to be an attempt to make Venti work in such a dynamic > environment. IMHO, the assumption that computers are always connected > to the network was a fundamental mistake in Plan 9 on the other hand, without this assumption, we would not have 9p. it was a real innovation to dispens

Re: [9fans] Plan9 - the next 20 years

2009-04-17 Thread erik quanstrom
> But I'll say that if anyone tries to solve these problems today, they > should not fall into the same trap, [...] yes. forward thinking was just the thing that made multics what it is today. it is equally a trap to try to prognosticate too far in advance. one increases the likelyhood of failu

Re: [9fans] Plan9 - the next 20 years

2009-04-17 Thread erik quanstrom
> On Fri, Apr 17, 2009 at 11:37 PM, erik quanstrom > wrote: > >> I can imagine a lot of problems stemming from open files could be > >> resolved by first attempting to import the process's namespace at the > >> time of checkpoint and, upon that failing, usi

Re: [9fans] Plan9 - the next 20 years

2009-04-17 Thread erik quanstrom
> Speaking of NUMA and such though, is there even any support for it in the > kernel? > I know we have a 10gb Ethernet driver, but what about cluster interconnects > such as InfiniBand, Quadrics, or Myrinet? Are such things even desired in > Plan 9? there is no explicit numa support in the pc

Re: [9fans] Plan9 - the next 20 years

2009-04-18 Thread erik quanstrom
> > * you can get the same effect by increasing the scale of your system. > > > > * the reason conventional systems work is not, in my opinion, because > > the collision window is small, but because one typically doesn't do > > conflicting edits to the same file. > > > > * saying that something "is

Re: [9fans] VMs, etc. (was: Re: security questions)

2009-04-18 Thread erik quanstrom
On Fri Apr 17 16:22:55 EDT 2009, blstu...@bellsouth.net wrote: > >> I often tell my students that every cycle used by overhead > >> (kernel, UI, etc) is a cycle taken away from doing the work > >> of applications. I'd much rather have my DNA sequencing > >> application finish in 25 days instead of

Re: [9fans] Plan9 - the next 20 years

2009-04-18 Thread erik quanstrom
On Sat Apr 18 11:08:21 EDT 2009, rminn...@gmail.com wrote: > On Sat, Apr 18, 2009 at 6:50 AM, erik quanstrom wrote: > > > in a plan 9 system, the only files that i can think of which many processes > > have open at the same time are log files, append-only files.  just reop

Re: [9fans] Plan9 - the next 20 years

2009-04-18 Thread erik quanstrom
On Sat Apr 18 12:21:49 EDT 2009, rminn...@gmail.com wrote: > On Sat, Apr 18, 2009 at 9:10 AM, J.R. Mauro wrote: > > > I agree that generally only one process will be accessing a "normal" > > file at once. I think an editor is not a good example, as you say. > > > > I'll say it again. It does not

Re: [9fans] Help for home user discovering Plan 9

2009-04-18 Thread erik quanstrom
> Seriously, give Gentoo portage a try. There is a sane package > management system for Linux. if you don't upgrade in lock step you will get into dependency hell. portage is now exactly what its developers railed against — rpm dependency hell. portage just kicks the can down the street a bit. i

Re: [9fans] web server

2009-04-18 Thread erik quanstrom
> While I think SQL *really* sucks (besides smelling too much of COBOL, > it pretends to be relational when it is not), your facts here are incorrect. clearly sql is relational, if you take codd's meaning of the term. also sql as a language has nothing to do with cobol. cobol, like fortran, c

Re: [9fans] web server

2009-04-18 Thread erik quanstrom
> I really didn't want to get into this debate, my point about COBOL was > more about the archaic syntax than anything else. the way not to get into a debate is to not make controvertial claims about the facts. - erik

Re: [9fans] Adventures of a home user

2009-04-18 Thread erik quanstrom
> When I installed Plan 9, it took more than an hour to format 2GB. the plan 9 ide driver will use pio unless you tell it to do otherwise. i'm not sure if this applies to qemu, but assuming your emulated drive is sdC0, you can turn on dma with echo dma on > /dev/sdC0/ctl - erik

Re: [9fans] web server

2009-04-19 Thread erik quanstrom
> http://myserver/magic/cgi/foo?var1=val1?var2=val2 i think you wish http://myserver/magic/cgi?var1=val1&var2=val2 - erik

Re: [9fans] "FAWN: Fast array of wimpy nodes" (was: Plan 9 - the next 20 years)

2009-04-19 Thread erik quanstrom
> I think the key to successfully being able to use Plan 9 commercially > is to use its unique technical advantages to exploit disruptive > economic changes. works for coraid. > Economics beats technology every time (e.g., x86/amd64 vs. > MIPS/Itanium, Ethernet vs. Infiniband, SATA vs. SCSI) so >

Re: [9fans] web server

2009-04-19 Thread erik quanstrom
On Sun Apr 19 09:13:28 EDT 2009, j...@csplan9.rit.edu wrote: > >>http://myserver/magic/cgi/foo?var1=val1?var2=val2 > > > > i think you wish > > > > http://myserver/magic/cgi?var1=val1&var2=val2 > > > > - erik > > So what are these magical vars? Where do I specify > the cgi program to ru

Re: [9fans] Adventures of a home user

2009-04-19 Thread erik quanstrom
> john, eric, and yy, thanks! > > 9vx isn't working out very well for me so far. I'm trying to practice > everything in the documentation on the Plan 9 site, then I'll work on the > ideas that have been posted for me here. I was going to practice first in > 9vx, because it's easier to switch back

Re: [9fans] "FAWN: Fast array of wimpy nodes" (was: Plan 9 - the next 20 years)

2009-04-19 Thread erik quanstrom
> To clarify, I meant that given X vs. Y, the cost benefits of X > eventually overwhelm the initial technical benefits of Y. > > With SATA vs. SCSI in particular, I wasn't so much thinking of command > sets or physical connections but of providing cluster scale storage > (i.e., 10's or 100's of TB

Re: [9fans] web server

2009-04-19 Thread erik quanstrom
On Sun Apr 19 12:03:54 EDT 2009, 9...@9netics.com wrote: > you could make local mods to your httpd so that paths starting with > /cgi are given similar treatment as those that start with /magic; it > would execute "cgi" and pass it the arguments as usual. then url is: > > http://myserver/cgi/foo?

Re: [9fans] web server

2009-04-19 Thread erik quanstrom
t; after the 2nd '/', get the script name "script" in the example above. > > On Sun, Apr 19, 2009 at 2:05 PM, erik quanstrom wrote: > > On Sun Apr 19 12:03:54 EDT 2009, 9...@9netics.com wrote: > >> you could make local mods to your httpd so that paths start

Re: [9fans] web server

2009-04-19 Thread erik quanstrom
On Sun Apr 19 21:44:25 EDT 2009, 9...@9netics.com wrote: > i think John mentioned he was using cgi.c that's in Russ' contrib > area. did i imagine it? (entirely possible) i'm sorry. i took "cgi" to be a free variable. my mistake. - erik

Re: [9fans] Help for home user discovering Plan 9

2009-04-20 Thread erik quanstrom
On Mon Apr 20 11:04:31 EDT 2009, urie...@gmail.com wrote: > We can't tell you who uses Plan 9, because it is a secret and they > don't want anyone to learn about their secret competitive advantage. > /sarcasm (But still sadly true.) i have a counterexample. coraid, inc. uses plan 9. it's a big

Re: [9fans] "FAWN: Fast array of wimpy nodes" (was: Plan 9 - the next 20 years)

2009-04-20 Thread erik quanstrom
On Mon Apr 20 11:13:01 EDT 2009, jbar...@gmail.com wrote: > > could you explain how raid 5 relates to sata vs sas? > > i can't see now it's anything but a non-sequitor. > > Here is the motivating real-world business case: You are in the movie > post-production business and need > 50 TB of online s

Re: [9fans] VMs, etc.

2009-04-20 Thread erik quanstrom
> >> what could we do today, but don't quite dare? > >> > > > > > a Blue Ray writer does 50Gb per disk (we're supposed to be getting one > soon, so maybe I can report back about this later) > > ArcVault SCSI autoloading tape drives do from 9.6tb - 76tb > > http://www.b2net.co.uk/overlan

Re: [9fans] Plan9 - the next 20 years

2009-04-20 Thread erik quanstrom
> http://moderator.appspot.com/#15/e=c9&t=2d "You must have JavaScript enabled in order to use this feature. cruel irony. - erik

Re: [9fans] Plan9 - the next 20 years

2009-04-20 Thread erik quanstrom
> I thought 9p had tagged requests so you could put many requests in flight at > once, then synchronize on them when the server replied. > > Maybe i misunderstand the application of the tag field in the protocol then? > > Tread tag fid offset count > > Rread tag count data without having the b

Re: [9fans] Plan9 - the next 20 years

2009-04-20 Thread erik quanstrom
> > > Tread tag fid offset count > > > > > > Rread tag count data > > > > without having the benefit of reading ken's thoughts ... > > > > you can have 1 fd being read by 2 procs at the same time. > > the only way to do this is by having multiple outstanding tags. > > > I thought the tag was ass

Re: [9fans] Plan9 - the next 20 years

2009-04-20 Thread erik quanstrom
> Thus running multiple reads (on the same file) only really > works for files which operate as read disks - e.g. real disks, > ram disks etc. at which point, you have reinvented aoe. :-) - erik

Re: [9fans] Plan9 - the next 20 years

2009-04-20 Thread erik quanstrom
> > not that i can think of. but that addresses throughput, but not latency. > > > Right, but with better throughput overall, you can "hide" latency in some > applications. That's what HTTP does with this AJAX fun right? > > Show some of the page, load the rest over time, and people "feel bett

Re: [9fans] Really weird SATA disk/controller issue

2009-04-20 Thread erik quanstrom
On Mon Apr 20 19:55:31 EDT 2009, devon.od...@gmail.com wrote: > Hey all, > > That laptop that I was boasting ran Plan 9 flawlessly (minus the > non-native graphics) is now exhibiting some really weird behavior. > I've replaced the old Hitachi Travelstar disk (100GB / 7200RPM) with a > Seagate 320G

Re: [9fans] Adventures of a home user

2009-04-21 Thread erik quanstrom
> I tried webfs and got an error message, so I ran webcookies, and then I was > able to run webfs without an error message. Then I was able to run abaco. > Now I need to learn how to use it. I thought maybe I could just type in a > URL and 2-click "Get," but nothing happened. i can verify that tha

Re: [9fans] Plan9 - the next 20 years

2009-04-21 Thread erik quanstrom
On Tue Apr 21 06:25:49 EDT 2009, rogpe...@gmail.com wrote: > 2009/4/21 maht : > > Tag 3 could conceivably arrive at the server before Tag 2 > > that's not true, otherwise the flush semantics wouldn't > work correctly. 9p *does* require in-order delivery. i have never needed to do anything importa

Re: [9fans] Adventures of a home user

2009-04-21 Thread erik quanstrom
> > - and how to change to a different user without rebooting. there are two answers to this question, depending on if you have a cpu server or a terminal * terminal. don't do that. the plan 9 model is that you really own the hardware and the terminal is not intended to be multi-user. so you d

Re: [9fans] Plan9 - the next 20 years

2009-04-21 Thread erik quanstrom
On Tue Apr 21 10:05:43 EDT 2009, rogpe...@gmail.com wrote: > 2009/4/21 erik quanstrom : > > what is the important use case of flush and why is this > > so important that it drives the design? > [...] > "The 9P protocol must run above a reliable transport protocol

Re: [9fans] Plan9 - the next 20 years

2009-04-21 Thread erik quanstrom
On Tue Apr 21 10:34:34 EDT 2009, n...@lsub.org wrote: > Well, if you don't have flush, your server is going to keep a request > for each process that dies/aborts. If requests always complete quite > soon it's not a problem, AFAIK, but your server may be keeping the > request to reply when something

Re: [9fans] Adventures of a home user

2009-04-21 Thread erik quanstrom
> You could have easily looked at something like /rc/bin/sig or whatever to > figure out the same stuff, but I guess it continues to be easier to post on > 9fans than to think. give the guy a break. he seems to have made a lot of progress and its only natural to be confused by things that would

Re: [9fans] Plan9 - the next 20 years

2009-04-21 Thread erik quanstrom
> plan 9 and inferno rely quite heavily on having flush, > and it's sometimes notable when servers don't implement it. > for instance, inferno's file2chan provides no facility > for flush notification, and wm/sh uses file2chan; thus if you > kill a process that's reading from wm/sh's /dev/cons, > t

[9fans] sliderules, ned and other obsolescent programs

2009-04-21 Thread erik quanstrom
; ' ffrom 1/mail/fs/mbox/54 hugo rivera 2/mail/fs/mbox/53erik quanstrom 3/mail/fs/mbox/52Joe Blow 4/mail/fs/mbox/51 5/mail/fs/mbox/50Devon H. O'Dell 6/mail/fs/mbox/49 7/mail/fs/mbox/

Re: [9fans] Plan9 - the next 20 years

2009-04-21 Thread erik quanstrom
> > if the problem with 9p is latency, then here's a decision that could be > > revisisted. it would be a complication, but it seems to me better than > > a http-like protocol, bundling requets together or moving to a storage- > > oriented protocol. > > Can you explain why is it better than bundl

Re: [9fans] Plan9 - the next 20 years

2009-04-21 Thread erik quanstrom
> i was trying to point out that if you try to > ignore the issue by removing flush from the > protocol, you'll get a system that doesn't work so smoothly. your failure cases seem to rely on poorly chosen tags. i wasn't suggesting that flush be eliminated. i was thinking of ways of keeping flush

Re: [9fans] authentication fails strangely after changing password

2009-04-22 Thread erik quanstrom
> You should only have to do this when you change the bootes password; > it is Bad News when the nvram password doesn't match the bootes password. > > No need to do it if you change a different user's password. it's also bad news if your fileserver does not agree. :-) auth/debug is very helpful

Re: [9fans] Plan9 - the next 20 years

2009-04-23 Thread erik quanstrom
> Not to beat a (potentially) dead horse (even further) to death, but if we > had some way of knowing that files were actually data (i.e. not ctl files; > cf. QTDECENT) we could do more prefetching in a proxy -- e.g. cfs could be > modified to do read entire files into its cache (presumably it woul

[9fans] roots

2009-04-23 Thread erik quanstrom
where do they think linux, minux, unix came from? “ "It rarely leads to good things" when a small community gets headed off in their own direction, he [lwn editor j. corbet] said. — http://lwn.net/Articles/327938/ - erik

Re: [9fans] missing ed's line numbering in sam -d

2009-04-23 Thread erik quanstrom
you can do this in sam with an external program ; cat /bin/nl #!/bin/rc if(~ $#* 0) awk '{printf("%4d %s\n", ++lineno, $0);}' if not for(i) awk '{printf("%4d %s\n", ++lineno, $0);}' < $i ; sam -d /lib/volcanoes 1,10>nl 1 This nice little file came from the Smithsonian. 2 Dou

Re: [9fans] missing ed's line numbering in sam -d

2009-04-23 Thread erik quanstrom
On Thu Apr 23 11:36:09 EDT 2009, rogpe...@gmail.com wrote: > 2009/4/23 erik quanstrom : > > you can do this in sam with an external program > > ... except the line numbers won't be accurate unless > you're printing lines from the beginning. left as an excercize to the reader. - erik

Re: [9fans] missing ed's line numbering in sam -d

2009-04-23 Thread erik quanstrom
On Thu Apr 23 12:06:23 EDT 2009, rogpe...@gmail.com wrote: > 2009/4/23 erik quanstrom : > > left as an excercize to the reader. > > not possible, i think, as the external program can't > know where the sam selection is coming from. > easier in acme. totally impossible t

[9fans] 9p2010

2009-04-23 Thread erik quanstrom
it occurred to me yesterday morning that the problem with a bundle of 9p requests is that 9p then no longer maps directly to system calls. with 9p2000, if you want to do a Tread, it's pretty clear that one needs to read(2); traditiona syscalls map directly to 9p. not so when bundles/sequences are

Re: [9fans] (no subject)

2009-04-23 Thread erik quanstrom
> back, the GAS pass failed with a segmentation violation. unfortunate! that's gotta hurt. ☺ - erik

Re: [9fans] 9p2010

2009-04-23 Thread erik quanstrom
> as a starting point, i'd envisaged simply changing the existing > system calls to do sequences. > [...] > > Sequence: adt { > queue: fn(seq: self ref Sequence, m: Tmsg, tag: any); > wait: fn(seq: self ref Sequence): (any, Tmsg, Rmsg); > cont: fn(seq: self ref Sequence); >

Re: [9fans] IWP9 this year?

2009-04-24 Thread erik quanstrom
On Fri Apr 24 09:56:24 EDT 2009, devon.od...@gmail.com wrote: > Hello! > > Although I probably won't be able to go unless it's close (a.k.a. in > the Baltimore / Washington DC area -- which actually isn't perhaps a > bad idea?), the subject of an IWP9 has been brought up several times > this year.

Re: [9fans] wrarenas

2009-04-24 Thread erik quanstrom
On Fri Apr 24 13:51:18 EDT 2009, st...@quintile.net wrote: > Is wrarenas (write venti arenas back to disk) really really > slow or have I a hardware problem. > > reading 10 arenas took 30secs or so, writing them into > a new venti (even with a bloom filter and DMA turned on) > took about 36 hours.

Re: [9fans] wrarenas

2009-04-24 Thread erik quanstrom
and, writing should take the same amount of time as reading. that is you can switch -if and -of and you should get the same results. it could be that you are seeking around all over the place. on modern hardware, if you are doing significant seeks between each write, you can get down below 1mb/s

Re: [9fans] Borderless rio

2009-04-27 Thread erik quanstrom
> labels=$* > if(test $#labels -lt 1) > labels=(1 2 3 4) > > rio.b -I -i'\ > for(label in $labels) > window -miny 40 ''rio -i label ''$label > # give time to set all the labels > sleep 0.5 > window -dy 39 ''winwatch -e ^(winwatch|stats|fa

Re: [9fans] Acme column layout box and buttons

2009-04-27 Thread erik quanstrom
> That's a lot of good actions attached to all the three buttons for > handling vertical layouts. How about adding similar actions to all the > three buttons for managing horizontal layouts to a column /layout box/. good idea. - erik

Re: [9fans] web server

2009-04-27 Thread erik quanstrom
> On Sun, 2009-04-19 at 00:13 +0200, Uriel wrote: > > My criticism was directed at how they are actually used in pretty much > > every web 'framework' under the sun: with some hideously messy ORM > > layer, they plug round Objects down the square db tables, and all of > > it to write applications w

Re: [9fans] IWP9 this year?

2009-04-27 Thread erik quanstrom
> And as an added bonus... Erik will be in his time zone. So > if anyone wants to work out ride-share or car rental details > with him he won't (most likely) show up a day before. have faith! i could also get the switch back to dst wrong. - erik

Re: [9fans] web server

2009-04-27 Thread erik quanstrom
> I use ~ patterns for URI matching on my site what are "~ patterns"? - erik

Re: [9fans] rio in rio and ghost windows.

2009-04-27 Thread erik quanstrom
> can anyone confirm this yes. your patch properly resizes the hidden window as well as fixing the bug. > and may make a patch? i'll leave that up to you. - erik

Re: [9fans] The Olde 2e 'worthies' ... ?

2009-04-28 Thread erik quanstrom
> of encryption with a one time pad. s/one time // - erik

Re: [9fans] just in case anyone has written this

2009-04-28 Thread erik quanstrom
> > if one node is just slow enough in responding that it > > falls outside the timeout, you could get an annoying situation > > where that node is out-of-step forever after. > i fought some socket mgmt software for a few years that did timeouts and rollup like this. it seemed to me that between

Re: [9fans] just in case anyone has written this

2009-04-28 Thread erik quanstrom
> not yet, although the syslogs in question are on a somewhat > constrained budget since they're running inside a vm whose image is, > for various reasons, kept small... sometimes i think us cs types operate with the following algorithm do{ while(!resourceconstrainted())

Re: [9fans] problems with redirection in rc

2009-05-05 Thread erik quanstrom
> > I changed label to write to /dev/tty explicitly, which should > > avoid this problem. > > > > Russ > > So if I understand right, this is/was a plan9port related feature, right? it's a unix-related problem. the feature of setting window labels is shared between plan 9 and p9p, but the plan 9

Re: [9fans] problems with redirection in rc

2009-05-05 Thread erik quanstrom
> yes. it gets around the fact that linux doesn't have per-process namespaces > (well if it does, plan9port doesn't use them), so there's no easy > way to have a different /dev/label for each 9term. linux does have per-process namespaces. unfortunately, since linux security depends on the namespa

Re: [9fans] problems with redirection in rc

2009-05-05 Thread erik quanstrom
On Tue May 5 11:46:40 EDT 2009, rogpe...@gmail.com wrote: > in that case, surely it'd be trivial to make a root-suid > executable that allows namespace manipulation in > a non-sensitive area (e.g. /mnt)? maybe it could > be distributed as part of p9p meaning hacks like > $NAMESPACE could go away u

[9fans] disk drive temperature monitoring

2009-05-07 Thread erik quanstrom
if you're using the contrib package quanstro/sd and pull the new quanstro/fis and quanstro/atazz and you have a newish ata drive that supports sct, it's simple to check drive temperature: chula# hdtemp /dev/sda0 32 /dev/sda3 34 /dev/sdE0 33 you ca

Re: [9fans] command output on acme

2009-05-08 Thread erik quanstrom
On Fri May 8 05:43:17 EDT 2009, uai...@gmail.com wrote: > Hello, > sometimes, when I execute a few times some external commands on a > directory with multiple files on it (an external command like tail +0f > on different files that are constantly appended), it is nice to have > the output of each

<    1   2   3   4   5   6   7   8   9   10   >