Re: [9fans] AMD A68-N5000 kabini mother

2014-08-01 Thread erik quanstrom
cpu% paqfs /boot/bootfs.paq bootfs: Mon Jul 28 18:45:56 GMT 2014 fingerprint: ce48b5387fa103247e64c81531fd49f129526c7a cpu% cd /n/paq cpu% du -n 70210 ./386/bin/9660srv 161885./386/bin/awk [...] [...] 0 ./lib 3059482 . cinap, how would you assess the tradeoffs in the

Re: [9fans] Web Site broken

2014-07-28 Thread erik quanstrom
On Mon Jul 28 04:42:19 EDT 2014, subscripti...@posteo.eu wrote: Why do I always get stupid answers on this list? [...] On 28.07.2014 09:24, Sergey Zhilkin wrote: Web (http) is only a translater of 9P :) use P9P to mount and list sources. that's not a stupid answer. but it may be

Re: [9fans] Plan9 Sources Repository

2014-07-19 Thread erik quanstrom
1. The history is confined to Plan9. It is hard to do small fixes (typos, documentation) from another system. that's true. but it's easy to get a plan 9 system, or drawterm into one. in my experience, plan 9 is a system one spends siginficant time in. i would not want to change the

Re: [9fans] extern register

2014-07-19 Thread erik quanstrom
On Sat Jul 19 10:40:49 EDT 2014, ara...@mgk.ro wrote: On Sat, Jul 19, 2014 at 2:42 PM, Charles Forsyth charles.fors...@gmail.com wrote: _tos only works when every process has at least one stack always at the same fixed virtual address. Isn't this always true? does anyone have a use case

Re: [9fans] Plan9 Sources Repository

2014-07-19 Thread erik quanstrom
1. /n/sources/contrib/fgb/root/rc/bin/contrib/install fgb/contrib Why do I need to know about fgb, why not /n/sources/packages/contrib/rc/bin/contrib/install contrib ? 2. bichued/hg -- 1.0.2 jas/hg-src mjl/hgfs stallion/mercurial -- 2.2.3 Which one now? this is

Re: [9fans] Plan9 Sources Repository

2014-07-19 Thread erik quanstrom
The Wiki seems to be frozen (i.e., not editable anymore): - no Edit button on http://www.plan9.bell-labs.com/wiki/plan9/software_for_Plan_9/ - no permissions for /mnt/wiki/software_for_plan9/current (wiki.wiki 444) edit from plan 9. - erik

Re: [9fans] Plan9 Sources Repository

2014-07-18 Thread erik quanstrom
Yet: is there a source control system behind it? Would it be possible to check out directly from there? there is nothing most folks would recognize as a distributed revision control system. the repo is sources itself. history is through history(1). you can check out code with cp(1), tar(1),

Re: [9fans] file server speed

2014-07-18 Thread erik quanstrom
On Fri Jul 18 12:51:49 EDT 2014, 23h...@gmail.com wrote: perhaps high-efficiency wall warts could make up much of the difference. picked at random (first link) ... http://www.amazon.com/Nokia-AC-10U-Micro-USB-Efficiency-Charger/dp/B00DP0TQLG Given that the rpi has some weird power

Re: [9fans] extern register

2014-07-18 Thread erik quanstrom
On Fri Jul 18 21:58:37 EDT 2014, cinap_len...@felloff.net wrote: the amd64 compiler reserves R14 and R15 for extern register declarations. these are used by the kernel for the mach and up pointers, but currently are not preserved during system calls. would it make sense to save and restore

Re: [9fans] extern register

2014-07-18 Thread erik quanstrom
On Fri Jul 18 22:05:32 EDT 2014, quans...@quanstro.net wrote: On Fri Jul 18 21:58:37 EDT 2014, cinap_len...@felloff.net wrote: the amd64 compiler reserves R14 and R15 for extern register declarations. these are used by the kernel for the mach and up pointers, but currently are not preserved

Re: [9fans] extern register

2014-07-18 Thread erik quanstrom
On Fri Jul 18 22:34:43 EDT 2014, cinap_len...@felloff.net wrote: isnt that contradicting what you just said? i didn't think so. restated: you could restore the registers, and that would be right proper, but it wouldn't make a difference unless you're using some fancy assembly, or a different

Re: [9fans] extern register

2014-07-18 Thread erik quanstrom
On Fri Jul 18 22:28:12 EDT 2014, cinap_len...@felloff.net wrote: so, we say r14 and r15 arent really special for user programs. and its just a c compiler implementation detail that it doesnt allocate these registers, but assembly code can freely use them for scratch space or whatever. extern

Re: [9fans] kbdputc() in devcons.c in 9front?

2014-07-17 Thread erik quanstrom
On Thu Jul 17 04:03:49 EDT 2014, cinap_len...@felloff.net wrote: i havnt tried this, but as a quick work arround for rio, you can make the /dev/kbd file unaccessible to rio with aux/stub so rio will revert to reading /dev/cons: aux/stub /dev/kbd pipefile -r ktrans /dev/cons rio -i

Re: [9fans] kbdputc() in devcons.c in 9front?

2014-07-17 Thread erik quanstrom
kbdfs removes some code duplication like the latin1 composing. vncs in 9front just runs another instance of kbdfs to provide cons and kbd files instead of reimplementing the kernels console code. i found the major source of duplication was the n copies of (different!) scan code tables in the

Re: [9fans] file server speed

2014-07-17 Thread erik quanstrom
I've used ReadyNAS appliances at home for almost 10 years. The current product line is made up of low-power Atoms. I'm running a RAID5 across 4 500G enterprise SATA drives (that should indicate how old this unit is pretty well...) I have a wired network primarily in the rack in the office at

Re: [9fans] file server speed

2014-07-17 Thread erik quanstrom
My desire is to have one file server with auth server and any numbers of terminals which can also be used as cpu server (for drawterm). In this case the smallest config is a file server and a terminal/cpu server. Ken's file server is standallone and has special user space. Then can we add

Re: [9fans] file server speed

2014-07-17 Thread erik quanstrom
There is no particular reason for it to be tcp given lack of any authentication. The beauty of CAS is that it need not even talk to the same server but it is! even when venti and fossil are on the same machine. - erik

Re: [9fans] file server speed

2014-07-17 Thread erik quanstrom
So long as a server returns a block corresponding to its SHA1 score, you (the client) don't care whether it is the same server you wrote the original block to or another (and you can always verify the returned block). This opens up some but this isn't unique to content-addressed storage. as

Re: [9fans] file server speed

2014-07-16 Thread erik quanstrom
Recent kenfs can be such a machine? Please remember I plan it for my private home machine, not any sofisticated office use. i use ken's file server for personal use. i enjoy the fact that a cpu kernel panic does not impact the file server. - erik

Re: [9fans] file server speed

2014-07-16 Thread erik quanstrom
On Wed Jul 16 13:06:16 EDT 2014, kokam...@hera.eonet.ne.jp wrote: kenfs(of course 64 bit)+auth server +++9pi terminal/cpu server may be best for home use... i would go ahead and use to raspberry pi machines. having a dedicated cpu server is quite nice, and of course ken's file server is not an

Re: [9fans] Two Acme questions

2014-07-16 Thread erik quanstrom
First, after using plan9 and plan9port I've noticed that on plan9port (from Arch Linux's repository) the tagline seems to have the ability to wrap onto multiple lines. I quite like it because I end up with some (unfortunately unavoidable) long paths in them. Plan9's acme (I'm using 9atom)

Re: [9fans] file server speed

2014-07-16 Thread erik quanstrom
kenfs works well, but you have to be well prepared to maintain it. Invest in a decent UPS - preferably one that is supported by the auto-shutdown (ISTR support was added for that a while back). You need to be careful when sizing your cache - I would invest in a pair of decent SSDs for cache,

Re: [9fans] simplest disk filesystem

2014-07-16 Thread erik quanstrom
What is the motivation of choosing a distributed OS without wanting to explain how distributed operating systems work? the standard definition of distributed os rather excludes plan 9. - erik

Re: [9fans] file server speed

2014-07-15 Thread erik quanstrom
On Tue Jul 15 12:31:57 EDT 2014, cinap_len...@felloff.net wrote: not a fair comparsion. i'd look into kenfs for a fileserver only machine. might require some time to get it to work with your hardware tho. if you have a recent 64-bit intel machine, the hardware support should be nearly the

Re: [9fans] Revo L80

2014-07-10 Thread erik quanstrom
There is a (partially) functioning Ubuntu installation on the pc, if any output/info from it would be of use. not necessary. - erik

Re: [9fans] Revo L80

2014-07-10 Thread erik quanstrom
0.31.5: disk 01.01.85 8086/1e09 5 0:f0d1 16 1:f0c1 16 2:f0b1 16 3:f0a1 16 4:f091 16 5:f081 16 Intel Corporation 7 Series Chipset Family 2-port SATA Controller [IDE mode] 0.31.2: disk 01.01.8f 8086/1e01 5 0:f131 16 1:f121

Re: [9fans] Revo L80

2014-07-10 Thread erik quanstrom
On Thu Jul 10 13:12:55 EDT 2014, riddler...@gmail.com wrote: That seems to have brought it to life. Thanks Erik! you're welcome. this is general advice, and is not related to your specific h/w. - erik

Re: [9fans] Revo L80

2014-07-09 Thread erik quanstrom
On Wed Jul 9 16:10:16 EDT 2014, riddler...@gmail.com wrote: I've been looking into it a bit more today. It actually seems to be quite stuck. I get as far as the 'live usb' boot, with glenda, rio, acme etc starting up. The plan 9 install screen and its live log are there. While working

Re: [9fans] Building a Raspberry Pi image / Keyboard support

2014-07-07 Thread erik quanstrom
I attached my Japanese keyboard program here, which deals with multibyte sequence of key codes. Base is same as Gorka's (probably) program. This is the same one which I sent to eric. If anyone want to modify this for your language, don't warry about lisense etc. i think i added this to

Re: [9fans] Building a Raspberry Pi image / Keyboard support

2014-07-07 Thread erik quanstrom
On Sat Jul 5 19:46:36 EDT 2014, an...@kix.in wrote: Thanks for the suggestions. The keyboard + mouse work fine with Linux. In fact they work on Plan 9 together, but only for a few seconds before I get: kb: /dev/usb/ep6.1: read: i/o error kb: exiting usbotg: ep5.1 error intr 0082

Re: [9fans] Revo L80

2014-07-07 Thread erik quanstrom
Acer Revo l80 CPU: Intel Duel-Core 4-Thread i3-2377M (I would still use 32bit plan9) USB: both 2.0 and 3.0 ports Ethernet: Atheros AR5B22 Wireless Graphics: Intel-graphics 4000 I'm aware wireless can be a problem but I've got a wireless to Ethernet bridge I picked up for the pi that I can

Re: [9fans] 2014 hardware overview

2014-07-07 Thread erik quanstrom
I've tried booting from usd cdrom, usb stick both 9labs and 9legacy. it does not recognize them. this is ICH9R that's claimed to be supported. I'm going to try one that has IDE support and ICH9R so it can boot from cdrom and hopefully then recognize the sata chipset, like this one:

Re: [9fans] 2014 hardware overview

2014-07-07 Thread erik quanstrom
On Sun Jun 29 14:21:20 EDT 2014, cinap_len...@felloff.net wrote: 1) UEFI bios I know that 9load and friends can't handle UEFI bios, but I'm guessing if it's possible to use GRUB and chainload Plan9 when the bios is UEFI. Is that possible ? yes, this is possible. the plan9 kernel can

Re: [9fans] Building a Raspberry Pi image / Keyboard support

2014-07-07 Thread erik quanstrom
On Mon Jul 7 19:12:32 EDT 2014, kokam...@hera.eonet.ne.jp wrote: i think i added this to usb/kb in 9atom. see the -j option. I expected to manage it to use without recompilation for Japanese user. Your change still need to recompile the kernel, because usbd is included in the boot

Re: [9fans] Fwd: Building a Raspberry Pi image / Keyboard support

2014-07-07 Thread erik quanstrom
raspberry pi boxes and discussions about them are as varied and entertaining as program editors. oh, editors have a 40 year head start. rpi can't possibly have reached that level of tedium yet, can they have? - erik

Re: [9fans] Seiki 4k + RPi + Plan9

2014-07-07 Thread erik quanstrom
Sharp's manual says it can also use 1920x1080, which may be too small character to my old eyes.☺ why not just use a bigger font? - erik

Re: [9fans] 2014 hardware overview

2014-07-03 Thread erik quanstrom
i notice one bit in this thread that doesn't reflect how things really work. drives get labled C or D if they are blind probed at the usual i/o port locations; otherwise if they are discovered via pci space (even if at the standard port locations) they are labled starting with E. ahci drives

Re: [9fans] Kabini or Raspberry Pi?

2014-07-03 Thread erik quanstrom
When to compile runebase.c in the port of libc, I got runebase.c: 1255 illegal rune in string, where the line is: 0xfa6c, 0x242ee,/* 𤋮 䋮 */. Of course ther are many similar error lines, where all the line have 5 digit value such as '0x242ee'. Is there any limitations arm

Re: [9fans] Kabini or Raspberry Pi?

2014-07-03 Thread erik quanstrom
What did work was using 5c from /n/9atom ( http://comments.gmane.org/gmane.os.plan9.general/68992)! hey, i like that solution. - erik

Re: [9fans] Kabini or Raspberry Pi?

2014-07-03 Thread erik quanstrom
I recompiled 5c, which purged the problem, thanks. One thing, recent pc/trap.c has validalign() function, which is expected in port/syscallfmt.c. The trap.c in bcm has not. Then, I put void function on the filewhich proceeded compilation safely. validalign should be in ../omap/arch.c,

Re: [9fans] Update Raspberry Pi Steps (Wiki Confusion)

2014-06-29 Thread erik quanstrom
http://www.plan9.bell-labs.com/wiki/plan9/Updating_an_ARM_system/index.html says that I now have to recompile anything which has changed by running 'mk install' in the appropriate directory. What is / which are the appropriate directory(ies)? I can't seem to figure out where the update source

Re: [9fans] 2014 hardware overview

2014-06-29 Thread erik quanstrom
Nick Owens wrote: the obvious hardware is a thinkpad. Using a laptop as a server seems strange, but is effectively a simple solution. the regular supermicro server boards are known to work well. the x9 series are better tested than the x10s. but the x10s should work. also the supermicro

Re: [9fans] [GSOC] plan9 kernel scheduler

2014-06-23 Thread erik quanstrom
Lightweight EDF Scheduling with Deadline Inheritance by Jansen, S.J.Mullender et al. http://doc.utwente.nl/41399/1/00c6.pdf no. that's not it. .TL Real Time in Plan 9 .AU Sape Mullender Jim McKie .AI - erik

Re: [9fans] bug in procwired() for x86 scheduler?

2014-06-23 Thread erik quanstrom
On Mon Jun 23 12:22:23 EDT 2014, p...@fb.com wrote: Yes I agree, it's better that way. Is there a list somewhere on the web with all those 9atom patches? 9fs atom then look in /n/atom/patch, or /n/atom/patch/applied, or /n/atom/patch/applied$year. - erik ps. for 9fs case atom

Re: [9fans] [GSOC] plan9 kernel scheduler

2014-06-22 Thread erik quanstrom
On Sat Jun 21 21:47:37 EDT 2014, j...@cowsay.org wrote: +1 what Yoann said. :-) On SMP systems, all maches share a global run queue, and maches tend to try grabbing procs that have run on it before (affinity). Take a look at port/proc.c in particular, where a lot of the scheduling logic is

Re: [9fans] bug in procwired() for x86 scheduler?

2014-06-22 Thread erik quanstrom
On 22 June 2014 23:25, Yoann Padioleau p...@fb.com wrote: if(up != p (p-wired == nil || p-wired == MACHP(m-machno)) m-readied = p; yes, because on 386 m is effectively a constant. the code was written with extern register Mach *m in mind. 9atom has had it as if(up !=

Re: [9fans] cache lines, and 60000 cycles of doom

2014-06-20 Thread erik quanstrom
the astounding thing is that t1-t0 is often ~ 60,000 cycles. it only hits a small fraction of the time, and the average is much lower. but that just blows the mind. 6 cycles! (other versions with sched were much worse.) as far as i can tell, there are no funny bits in the

Re: [9fans] cache lines, and 60000 cycles of doom

2014-06-20 Thread erik quanstrom
On Fri Jun 20 01:04:20 EDT 2014, devon.od...@gmail.com wrote: Weird. I assume cycles is using rdtsc or rdtscp. Perhaps some of it is due to a combination of contention and rdtsc(p) being serializing instructions? On Jun 19, 2014 12:04 PM, erik quanstrom quans...@quanstro.net wrote: other than

Re: [9fans] crashing plan9 source boot CD with key combination (buffer overflow)

2014-06-20 Thread erik quanstrom
On Fri Jun 20 06:24:25 EDT 2014, p...@fb.com wrote: good catch, but... The code in kbdputsc() in kbd.c does not look very safe: kbscan-kc[kbscan-nk++] = c; - no bound checking, can overflow. this behavior depends entirely on what latin1() does. if latin1() will

Re: [9fans] cache lines, and 60000 cycles of doom

2014-06-20 Thread erik quanstrom
It disables out-of-order execution by the processor, so there's a pipeline stall. we know there's going to be a stall already, since we can't get the cacheline we're looking for. There's overhead to calling the tsc instructions, but not that much. Does `srb-wmach != m-machno` imply that t0

[9fans] odd constants in mkfs

2014-06-19 Thread erik quanstrom
i was moving ~400gb to a new other file system, and noticed that mkfs was extremely slow. it turns out that mkfs by default moves 1024-8 bytes at a time. i'm pretty sure this magical number turns out to be the default kfs block size minus the size of the tag (careful with that ax, eugene). ok,

[9fans] cache lines, and 60000 cycles of doom

2014-06-19 Thread erik quanstrom
i'm seeing some mighty interesting timing on my intel ivy bridge. i found a bug in the file server aoe implementation (can't happen if you're using the uniprocessor x86 version) that happens because the Srb is freed before wakeup completes. to solve this there is some code that sets the state

[9fans] some bios+usb+cinap's loader = slow

2014-06-19 Thread erik quanstrom
and by slow, i mean loading the kernel takes 3-4 minutes. :-) writing the kernel to usb from user space takes ~5s. has anyone else seen this, or taken a look? - erik

Re: [9fans] some bios+usb+cinap's loader = slow

2014-06-19 Thread erik quanstrom
On Thu Jun 19 19:25:18 EDT 2014, ara...@mgk.ro wrote: What BIOS? harness# aux/dmi 0: type biosinfo 0 len 24 handle 0 vendor American Megatrends Inc. version 1.0 biosstartseg0xf000 biosdate05/05/2009 biosromsz 0x000f

Re: [9fans] possible buffer overflow in devcons.c?

2014-06-18 Thread erik quanstrom
But is the buf[3] enough? UTFMAX is 4 so we could possibly overflow no? Shouldn't it be buf[UTFMAX] ? yes, it should. i thought i'd caught all of those. - erik

Re: [9fans] possible buffer overflow in devcons.c?

2014-06-18 Thread erik quanstrom
On Wed Jun 18 13:36:09 EDT 2014, mirtchov...@gmail.com wrote: used to be 3 :) UTFmax, defined as 3 in libc.h, is the maximum number of bytes required to represent a rune. which is exactly why this should have been caught. this one's my fault. - erik

Re: [9fans] possible buffer overflow in devcons.c?

2014-06-18 Thread erik quanstrom
On Wed Jun 18 14:15:14 EDT 2014, p...@fb.com wrote: Well, hard to grep for '3' in a big codebase. They should have used UTFMAX in the first place. it's not hard. i did this once. i think i did something like this g 'char[]+[a-z]+\[(3|4|3\+1)\]' /sys/src - erik

Re: [9fans] possible buffer overflow in devcons.c?

2014-06-18 Thread erik quanstrom
On Wed Jun 18 14:20:02 EDT 2014, quans...@quanstro.net wrote: On Wed Jun 18 14:15:14 EDT 2014, p...@fb.com wrote: Well, hard to grep for '3' in a big codebase. They should have used UTFMAX in the first place. it's not hard. i did this once. i think i did something like this

[9fans] unicode 7.0.0 support

2014-06-16 Thread erik quanstrom
since i missed the rather golden oppertunity to sleep in years ago and instead scripted the conversion from the the unicode-published UnicodeData.txt to the various plan 9 files, it was sadly trivial to convert and publish the new data. so we can now fully appreciate such gems as the blues

Re: [9fans] unicode 7.0.0 support

2014-06-16 Thread erik quanstrom
Now all we need is CTL (complex text layout)! that's what carrie fisher with the bazooka is for. blasting the idea that formerly understandable os + incomprehensible language for stick-building characters = goodness. back to skokie, il. and sadly they left her out! :-) :-) on the

Re: [9fans] unicode 7.0.0 support

2014-06-16 Thread erik quanstrom
On Tue Jun 17 00:38:56 EDT 2014, skip.tavakkol...@gmail.com wrote: i see; i missed the detour. that was four fried chickens and a coke ago. - erik

Re: [9fans] unicode 7.0.0 support

2014-06-16 Thread erik quanstrom
On Jun 16, 2014, at 9:44 PM, erik quanstrom quans...@quanstro.net wrote: that was four fried chickens and a coke ago. Absolutely *no* R-E-S-P-E-C-T here :-P no, ma'am. we're musicians. - erik

Re: [9fans] unicode 7.0.0 support

2014-06-16 Thread erik quanstrom
Got my Cheeze Whiz, boy? sure. as long as you don't have that hair do. - erik

Re: [9fans] $ifs equivalent in mk?

2014-06-12 Thread erik quanstrom
i have a mkfile which does: alljs=`{find -name '*.js'} my_target:Q: ... $alljs my_recipe; and it breaks for files with spaces in pathname -- each space-separated token of pathname is treated as separate prerequisite. if you rc-quote the terms, it should work. ; find|grep b './a

Re: [9fans] $ifs equivalent in mk?

2014-06-12 Thread erik quanstrom
here the var is processed by Rc inside recipe; in my case i need it processed by Mk inside prerequisite list i was demoing a technique that you might use. have you tried it? - erik

Re: [9fans] $ifs equivalent in mk?

2014-06-12 Thread erik quanstrom
thanks, tried and works. used sed for quoting; end result is perl-ugly: alljs=`{find -name '*.js' | 9 sed 's/''//g; s/^|$/''/g' } or alljs=`{find -name '*.js' | 9 sed 's/^|$|''/''/g' } great. glad that worked. though it is always a bit sad when one has to outwit one's tools. as

[9fans] 9syscall

2014-06-12 Thread erik quanstrom
case amd64 if(~ $i seek) echo TEXT _seek'(SB)', 1, '$0' if not echo TEXT $i'(SB)', 1, '$0' why is this necessary? surely this is artefact? - erik

Re: [9fans] 9syscall

2014-06-12 Thread erik quanstrom
On Thu Jun 12 09:35:29 EDT 2014, cinap_len...@felloff.net wrote: because the kernel assumes that returned vlong is passed by reference in the first argument, where on amd64, the (amd64) calling convention returns it in 64 bit AX register. so seek() is a library func that emulates the

Re: [9fans] 9syscall

2014-06-12 Thread erik quanstrom
On Thu Jun 12 10:12:56 EDT 2014, cinap_len...@felloff.net wrote: yes. what was returned by register keeps being returned by register (segbrk). so therefore seek is not special either on amd64. by the way seek(fd, 0xull, 0) will always return -1 on the architectures with the sign

Re: [9fans] 9syscall

2014-06-12 Thread erik quanstrom
On Thu Jun 12 10:31:30 EDT 2014, cinap_len...@felloff.net wrote: the difference is, returning pointers the natural way works on all archs. returning vlong works differently depending on the arch. so the portable syscall handlers use a convention that works the same on all archs, assuming

Re: [9fans] duppage

2014-06-11 Thread erik quanstrom
On Sun Jun 8 14:17:16 EDT 2014, quans...@quanstro.net wrote: On Sun Jun 8 13:55:52 EDT 2014, cinap_len...@felloff.net wrote: right. the question is, how did it vanish from the image cache. i think it is in the image cache, but .ref 1. perhaps independent of your question, my assumption is

Re: [9fans] long paths in acme tags

2014-06-11 Thread erik quanstrom
On Wed Jun 11 15:56:59 EDT 2014, ba...@bitblocks.com wrote: If you are editing multiple file within the same directory with a very long path, the long dir paths is what takes up most of the tag. One idea (borrowed from zsh) is to assign a long path to a variable and then just show the variable

Re: [9fans] long paths in acme tags

2014-06-11 Thread erik quanstrom
On Wed Jun 11 16:14:54 EDT 2014, s...@9front.org wrote: If one can define a variable in acme foo=/a/very/very/very/very/very/very/very/very/very/long/path/to/a if the acme tags show $foo/file1 $foo/file2 it would be much nicer. Has anyone considered doing this or

Re: [9fans] long paths in acme tags

2014-06-11 Thread erik quanstrom
On Wed Jun 11 16:34:51 EDT 2014, ara...@mgk.ro wrote: if the acme tags show $foo/file1 $foo/file2 it would be much nicer. Real paths are plumbable and copyable, variable names are not. p9p acme (where this problem is more acute) has multiline tags. both of these issues can be

Re: [9fans] long paths in acme tags

2014-06-11 Thread erik quanstrom
On Wed Jun 11 17:34:33 EDT 2014, ba...@bitblocks.com wrote: On Wed, 11 Jun 2014 22:27:34 BST Robert Raschke rtrli...@googlemail.com wrote: Whenever they are available, I use symlinks for shortening paths for Acme. This is so far the only good use I've found for them ;-) Symlinks don't

Re: [9fans] Semaphores in Plan 9

2014-06-11 Thread erik quanstrom
On Wed Jun 11 20:26:49 EDT 2014, misch...@9.offblast.org wrote: in Semaphores in Plan 9 [1] a test is described comparing semaphore-based locks to tas-based spinlocks. the paper says they ran doug's power series program using the different lock types in libthread for channels. i was trying to

Re: [9fans] duppage

2014-06-10 Thread erik quanstrom
On Mon Jun 9 23:55:00 EDT 2014, cinap_len...@felloff.net wrote: while you'r at it. take a look at 9front imageattach() code. it allows the chan attached to the image to be released when the image is not in use. this avoids all these chans and mounts being kept arround until the image is

Re: [9fans] duppage

2014-06-10 Thread erik quanstrom
On Tue Jun 10 09:58:18 EDT 2014, st...@quintile.net wrote: if a process exits and is then run again, it will always be re-read from storage. (since channel comparisons factor in to finding an image.) only if the lifetime overlaps will the cached image be used. The one place where I

Re: [9fans] duppage

2014-06-09 Thread erik quanstrom
On 8 June 2014 19:37, Charles Forsyth charles.fors...@gmail.com wrote: On 8 June 2014 19:15, erik quanstrom quans...@quanstro.net wrote: i think it is in the image cache, but .ref 1. but in that case it will still not pio, but make a local writable copy. in fact ref 1

Re: [9fans] Question about fossil

2014-06-09 Thread erik quanstrom
On Mon Jun 9 17:13:09 EDT 2014, lyn...@orthanc.ca wrote: On Jun 9, 2014, at 1:21 PM, Riddler riddler...@gmail.com wrote: It was brought about mainly because the wiki states that sources only uses ~512MB for fossil. I suspect that's wildly out of date. a basic install requires about

Re: [9fans] Question about fossil

2014-06-09 Thread erik quanstrom
Over the weekend I was playing with fossil and copied my fossil partition using its last score, swapped the two disks (under virtualbox) and rebooted. df now shows 1MB in use! So if you init fossil from the score of an existing installation, you can make do with a lot less space -- only

Re: [9fans] other kernel bug

2014-06-09 Thread erik quanstrom
On Mon Jun 9 21:02:01 EDT 2014, p...@fb.com wrote: Hi cinap, Would it be possible to change a bit the 9front mercurial repository so that it can work on MacOS filesystem. I get some: abort: case-folding collision between sys/lib/troff/font/devutf/charlib/lH and

Re: [9fans] duppage

2014-06-09 Thread erik quanstrom
On Mon Jun 9 04:25:00 EDT 2014, charles.fors...@gmail.com wrote: On 8 June 2014 19:37, Charles Forsyth charles.fors...@gmail.com wrote: On 8 June 2014 19:15, erik quanstrom quans...@quanstro.net wrote: i think it is in the image cache, but .ref 1. but in that case it will still

Re: [9fans] Question about fossil

2014-06-08 Thread erik quanstrom
- try this out on a small scale before you commit to it, as I suspect you'll run into various limits and may be bugs. Do report what you discover. - performance will likely be poor. For better performance you may want to keep venti index on a separate (flash) disk. - it would be nice

Re: [9fans] Question about fossil

2014-06-08 Thread erik quanstrom
I wasn't thinking I would need a big venti, more I only need a small fossil. My train of thought was because the fossil size is used to store the unarchived files after which they can be gotten from venti that it might be practical to only have the fossil be big enough to store the maximal

Re: [9fans] installs which hang

2014-06-08 Thread erik quanstrom
On Sat Jun 7 19:22:41 EDT 2014, st...@quintile.net wrote: - timesync. i saw this issue one in 2008, so i don't remember much about it. I think this was a bug in cron. When the time lept forward as timesync corrected the time at boot cron would try to run all the intervening events and

Re: [9fans] Question about fossil

2014-06-08 Thread erik quanstrom
It is all a changing of thinking - for example, never truncate logfiles, as truncating them actually uses more space in venti than just letting them grow. never worry about cloneing large directories, its (almost) free. in my mind these are not related to the content-addressed storage

Re: [9fans] 9pi on qemu failure

2014-06-08 Thread erik quanstrom
On Sat Jun 7 20:58:54 EDT 2014, p...@fb.com wrote: Hi, I've tried to run 9pi from richard miller on qemu but failed http://plan9.bell-labs.com/sources/contrib/miller/ qemu-system-arm -cpu arm1176 -m 512 -M versatilepb -kernel 9pi qemu: fatal: Trying to execute code outside RAM or ROM at

[9fans] duppage

2014-06-08 Thread erik quanstrom
i was experimenting a bit with cinap's version of dropping duppage, and for the lame build the kernel tests there's quite a bit more i/o duppage no duppage read4597629153366962 rpc 73674 75718 you can see below that both end up

Re: [9fans] Question about fossil

2014-06-08 Thread erik quanstrom
The last time I measured this (Aug 2012) raw disk write was 10MB/s, file writes were 2MB/s. On the same h/w disk linux got 25MB/s (don't recall file throughput). And Linux gets 11.3MB/s ethernet throughput compared 3.7MB/s on 9pi (both with ttcp). Linux tcp throughput is close to linespeed.

Re: [9fans] duppage

2014-06-08 Thread erik quanstrom
that doesn't make any sense. duppage copied the page the wrong way round (used the image page and put another copy in). eliminating duppage simply copies the page from the image cache instead of using that page. there isn't any i/o in either case. well, those are the measurements. do you

Re: [9fans] duppage

2014-06-08 Thread erik quanstrom
On Sun Jun 8 13:51:18 EDT 2014, charles.fors...@gmail.com wrote: On 8 June 2014 18:34, erik quanstrom quans...@quanstro.net wrote: well, those are the measurements. do you think they are misleading? perhaps with the pio happening in another context? i haven't hunted this down

Re: [9fans] duppage

2014-06-08 Thread erik quanstrom
On Sun Jun 8 13:55:52 EDT 2014, cinap_len...@felloff.net wrote: right. the question is, how did it vanish from the image cache. i think it is in the image cache, but .ref 1. - erik

Re: [9fans] suicide message on vmware

2014-06-07 Thread erik quanstrom
I downloaded a fresh 9atom iso and installed under virtual box again. After the installation (I got an error while the copydist was ~80%, which again I forgot to note down) when I booted up the new installation, it hangs after printing: posting this error might be helpful. - erik

[9fans] installs which hang

2014-06-07 Thread erik quanstrom
i don't think this has been mentioned in a while, so i wanted to quickly jot down a few tricks for looking at a hung machine. there are three main things that can hang things up on initial boot that aren't related to the kernel misbehaving - unclean shutdown forcing a fs check. this can take

Re: [9fans] What is Plan9 exactly?

2014-06-06 Thread erik quanstrom
P.S. The kernel is monolithic. Although, IIRC, there were attempts to make it a hybrid. this is far from the full story. because of the mount driver, many things may be in the kernel or userland according to what makes sense. for example, the ip stack has moved back and forth several times.

Re: [9fans] Glenda's world weary cousin

2014-06-06 Thread erik quanstrom
On Fri Jun 6 08:16:20 EDT 2014, nberc...@yahoo.fr wrote: On 06/06/2014 11:10, Steve Simon wrote: Glenda's world weary cousin https://pbs.twimg.com/media/BpZjUjXIYAIJiua.jpg Maybe the nsec patch would have been refused by this guy, right?! (not a troll, just kidding!) there was no

[9fans] MIPS _xdec kernel vs. user land

2014-06-06 Thread erik quanstrom
i know it's not used much, but this is very curious, and if the kernel version is correct, the user space version needs correcting, too. the rb kernel version starts with TEXT_xdec(SB), $0 SYNC why is a sync necessary? i would think, if LL/SC don't do what they do

Re: [9fans] suicide message on vmware

2014-06-06 Thread erik quanstrom
On Fri Jun 6 11:26:13 EDT 2014, ba...@bitblocks.com wrote: On Jun 5, 2014, at 8:15 PM, Ramakrishnan Muthukrishnan vu3...@gmail.com wrote: Hi, I just saw a suicide message on 9atom running on plan9 while updating the system: % replica/pull -v /dist/replica/network I

Re: [9fans] suicide message on vmware

2014-06-06 Thread erik quanstrom
that's not how replica works. replica respects local changes. however, since in this case two different databases were mixed up, there is little chance that the user has a sane system. What is the recommended way keep a 9atom system up to date? running pull as user glenda, same as the

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