Re: [9fans] Streaming on venti

2008-06-06 Thread Wilhelm B. Kloke
erik quanstrom [EMAIL PROTECTED] schrieb: Of course, some support form the OS is needed, which excludes Plan9. what is the basis for this claim? references? - erik Does Plan9 support GPT partitions now? The last time I tried Plan9 on a GPT partitioned disk I got my disk severely screwed

Re: [9fans] Streaming on venti

2008-06-06 Thread Wilhelm B. Kloke
Francisco J Ballesteros [EMAIL PROTECTED] schrieb: a gpt partitioned disk should have its mbr declaring mostly the disk in use, IIRC, plan 9 fdisk does not screw it up unless you decide to change the partitions in the mbr. On a GPT partitioned disk the mbr has to be ignored, as there is no way

Re: [9fans] Fun with libthread 1: The Sieve

2008-06-06 Thread Martin Neubauer
Very amusing. However, I'm not sure what you are trying to tell us, besides that you haven't understood what the O(...) means. * Pietro Gagliardi ([EMAIL PROTECTED]) wrote: Hello. I decided to teach myself the 33 libraries of Plan 9 (even those that I partially know), and I started with

Re: [9fans] Fun with libthread 1: The Sieve

2008-06-06 Thread Pietro Gagliardi
I forgot to mention one simple detail: when I said we set c to newc, we only set sieve's copy. filter still uses the c we gave it, meaning it reads numbers from counter the first time around. Martin: this was just an experiment. I'm really not sure how to count timed programs. Jon Bentley

Re: [9fans] Fun with libthread 1: The Sieve

2008-06-06 Thread roger peppe
Note that due to primes' syntax I can't time that until I know what the 205,963rd prime number is. erm, what about time rc -c 'primes 1 100 | sed 205963q | tail -5' takes just over 1 second on my laptop.

Re: [9fans] Fun with libthread 1: The Sieve

2008-06-06 Thread Martin Neubauer
* Pietro Gagliardi ([EMAIL PROTECTED]) wrote: Martin: this was just an experiment. I'm really not sure how to count timed programs. Jon Bentley showed me how to count simple algorithms. I'm not so sure this is very simple at first glance. I rest my case.

Re: [9fans] Streaming on venti

2008-06-06 Thread erik quanstrom
erik quanstrom [EMAIL PROTECTED] schrieb: Of course, some support form the OS is needed, which excludes Plan9. what is the basis for this claim? references? - erik Does Plan9 support GPT partitions now? The last time I tried Plan9 on a GPT partitioned disk I got my disk severely

Re: [9fans] Streaming on venti

2008-06-06 Thread erik quanstrom
Yes. A protective mbr is in the specification. Protective means: Not to be used for fiddling. the spec says that the protective mbr should include entries reserving the space used by gpt partitions. thus if you use fdisk to edit such a partition table, you will not harm gpt unless you delete

Re: [9fans] Streaming on venti

2008-06-06 Thread Russ Cox
- Using venti for backing up a streaming application is not a good idea. - Contiguous storage areas may be better. So far I agree with you. - One potential method to provide access to contiguous disk space may be a rich partitioning system, e.g. GPT. I can't believe what a terrible idea

Re: [9fans] Fun with libthread 1: The Sieve

2008-06-06 Thread Pietro Gagliardi
The program spawns n + 2 threads. sieve and counter are only spawned once, but filter is spawned for every prime number. With Roger's command line, primes took me about 91 seconds - possibly because it isn't looking for a specific end. primes 1 2837711 takes 43 seconds. Up next: what