[9fans] fossil pb: a clue?

2012-01-13 Thread tlaronde
I'm still trying to find why I have fossil data twice the size of the files served. Since this is almost exactly (minus the MB of kerTeX) twice the size, I wonder if fossil has, from the installation, still a recorded plan9.iso, not visible when mounting main. Since I have done an installation lo

Re: [9fans] fossil pb: a clue?

2012-01-13 Thread erik quanstrom
have you already done something like du -a | sort -nr | sed 20q in the main tree?. (it may make sense to remount /srv/boot someplace else to avoid device, etc.) - erik

[9fans] fossil pb: FOUND!

2012-01-13 Thread tlaronde
Summary of the previous episodes: after having reinstalled Plan9, with almost only the vanilla distribution, du(1) announces 325 MB, while fossil uses twice the place to store. I suspected, since it was clearly almost precisely twice (minus some tmp files and kerTeX), that the problem was the plan

Re: [9fans] fossil pb: a clue?

2012-01-13 Thread David du Colombier
How have you deleted the plan9.iso file? If you have used rm(1) or fossilcons(4) remove, the blocks should be properly unallocated from Fossil. But if you used fossilcons(4) clri for example, you have to manually reclaim the abandoned storage with clre and bfree, with the help of fossil/flchk or f

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread erik quanstrom
> But the surprise is that it was _not_ hidden. It _was_ here under /dist > ... but apparently not added to the summary made by du(1)? Does du(1) > "know" that some dir are mount point taking (normally) no real space, > and skipping them? Because this means one can add whatever files in > there and

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread tlaronde
On Fri, Jan 13, 2012 at 08:59:32AM -0500, erik quanstrom wrote: > > But the surprise is that it was _not_ hidden. It _was_ here under /dist > > ... but apparently not added to the summary made by du(1)? Does du(1) > > "know" that some dir are mount point taking (normally) no real space, > > and ski

Re: [9fans] fossil pb: a clue?

2012-01-13 Thread tlaronde
On Fri, Jan 13, 2012 at 02:59:52PM +0100, David du Colombier wrote: > How have you deleted the plan9.iso file? > I have used in user space rm(1), and then on the console: check, since it is said to reclaim the space. And it did. I have now half the size of the previous one, and this matches the

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread erik quanstrom
> > i think your / has mounts and binds that are confusing du. you > > need to remount your root file system someplace free of mounts > > or binds on top, e.g.: > > > > ; mount /srv/boot /n/boot; cd /n/boot > > ; du -s .>[2=] > > 4049232 . > > ; du -sh .>[2=] > > 3.861649G

Re: [9fans] Plan 9/plan9port coding conventions

2012-01-13 Thread Andrés Domínguez
2012/1/11 : > > (1) For example, P9 code tends to use variable names like "i" and "j", > where I would typically use self-documenting variable names like "row" > and "col".  Variable names like "row" and "col" are much easier to > search for (i.e., with a right-click), too.  Names like "i" and "j"

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread tlaronde
On Fri, Jan 13, 2012 at 09:47:25AM -0500, erik quanstrom wrote: > > please try what i suggested. i've shown that du -h works properly > on my system. > Indeed, remounting yields the correct Mb result. What I missed, is that the result of du(1) is not in bytes, but in _kilobytes_ (since I know

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread erik quanstrom
> The mounts in my profile are the vanilla ones (the only customizations > are for the network, the mouse, the keyboard). I do not play with the > namespace. > > Have you an idea where to look to find what are the offending > instructions? /boot(8)? they're not offending! not all files in a typi

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread David du Colombier
> The mounts in my profile are the vanilla ones (the only customizations > are for the network, the mouse, the keyboard). I do not play with the > namespace. > > Have you an idea where to look to find what are the offending > instructions? /boot(8)? It's probably simply because /root is a recursi

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread tlaronde
On Fri, Jan 13, 2012 at 11:16:11AM -0500, erik quanstrom wrote: > > they're not offending! not all files in a typical plan 9 namespace > make sense to du. for example, if you're runing rio, it doesn't make > sense to add that to the file total. also, if you have a disk in > /dev/sdXX/data, that

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread David du Colombier
> On a side note. When using mount(8) without arguments on a typical > Unix, one can see what is mounted where. Is there some way to find the > "organization" of the namespace on Plan9? (What is mount'ed and what > is bind'ed? ns(1) -- David du Colombier

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread tlaronde
On Fri, Jan 13, 2012 at 05:17:34PM +0100, David du Colombier wrote: > > The mounts in my profile are the vanilla ones (the only customizations > > are for the network, the mouse, the keyboard). I do not play with the > > namespace. > > > > Have you an idea where to look to find what are the offend

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread Vivien MOREAU
tlaro...@polynum.com writes: > On a side note. When using mount(8) without arguments on a typical > Unix, one can see what is mounted where. Is there some way to find the > "organization" of the namespace on Plan9? (What is mount'ed and what > is bind'ed? Sure... ns(1) :-) -- Vivien

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread Charles Forsyth
The name space can contain loops. Du and a few others try to detect that, using Qids, to avoid being annoying, but the loops are there. Open (and chdir etc) do indeed record the name used to open the file, and that helps resolve the ".." problem (now done slightly differently from the paper, I thin

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread tlaronde
On Fri, Jan 13, 2012 at 05:44:36PM +0100, Vivien MOREAU wrote: > tlaro...@polynum.com writes: > > > On a side note. When using mount(8) without arguments on a typical > > Unix, one can see what is mounted where. Is there some way to find the > > "organization" of the namespace on Plan9? (What is m

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread tlaronde
On Fri, Jan 13, 2012 at 05:41:01PM +0100, tlaro...@polynum.com wrote: > > > > See /lib/namespace. > > Yes, but reading "Getting Dot-Dot right" by Rob Pike, I thought that the > solution was to have, underneath, one uniq pathname for a file. Date(1) > can format UTC; whatever the user presentation

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread tlaronde
On Fri, Jan 13, 2012 at 04:50:34PM +, Charles Forsyth wrote: >[...] > You can easily build a looped space to test it: > mkdir /tmp/y > mkdir /tmp/y/z > bind /tmp /tmp/y/z > # have fun > Since this is by error'ing that one learns, I learned a lot today! -- Thierry Laronde

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread Charles Forsyth
It was a long time ago, but I think some versions of du used dev/ino to avoid counting the same file twice. On 13 January 2012 17:02, wrote: > I never thought that perhaps, under Unices, du(1) with hard links will > produce the same misleading result... >

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread Nicolas Bercher
tlaro...@polynum.com a écrit : I never thought that perhaps, under Unices, du(1) with hard links will produce the same misleading result... And fortunately, Unices 'du' handles this correctly! (-l option toggles the counting of hardlinked files several times or not) Nicolas

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread erik quanstrom
> the UTC. Namespace is a way to manage the nicknames, or the presentation > of data; to manage different views of the "real" thing, but underneath > there is an uniq pathname; a pathname finally resolved to something > (no infinite recursion). what "real" thing? from the perspective of a user p

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread tlaronde
On Fri, Jan 13, 2012 at 06:24:39PM +0100, Nicolas Bercher wrote: > tlaro...@polynum.com a écrit : > >I never thought that perhaps, under Unices, du(1) with hard links will > >produce the same misleading result... > > And fortunately, Unices 'du' handles this correctly! > (-l option toggles the cou

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread tlaronde
On Fri, Jan 13, 2012 at 12:37:17PM -0500, erik quanstrom wrote: >[...] > each file server has a unique path name, called the qid (as charles > mentioned). but between (instances of) file servers, qids are not unique. But a "fully qualified qid", I mean, at this very moment, for the kernel, a res

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread erik quanstrom
> > each file server has a unique path name, called the qid (as charles > > mentioned). but between (instances of) file servers, qids are not unique. /dev/pid has a different size depending on what your pid happens to be. so i think your statement is still too strong. > I will not exchange the

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread Yaroslav
please note that the sum du returns may be bigger than the actual storage used anyway - think deduping and compression done at venti level.

Re: [9fans] miau, an IRC bouncer

2012-01-13 Thread Yaroslav
well, there is a session persistense in Plan 9, and its name is vncs(1)…

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread erik quanstrom
On Fri Jan 13 16:01:35 EST 2012, yari...@gmail.com wrote: > please note that the sum du returns may be bigger than the actual > storage used anyway - think deduping and compression done at venti > level. not everyone has a venti. - erik

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread Charles Forsyth
that's very true. i rely on that quite a bit, generating new copies frequently, expecting that it won't consume much more space. On 13 January 2012 21:00, Yaroslav wrote: > think deduping and compression done at venti

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread erik quanstrom
On Fri Jan 13 17:16:01 EST 2012, charles.fors...@gmail.com wrote: > that's very true. i rely on that quite a bit, generating new copies > frequently, expecting that it won't consume much more space. an extra copy or 100 of the distribution will be <1% of a new hard drive, even with no de-dup. -

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread Aram Hăvărneanu
erik quanstrom wrote: > an extra copy or 100 of the distribution > will be <1% of a new hard drive, even with > no de-dup. Sure, but there's other data than that. I do music, as a hobby. A project for an electronic track can have 20GB because everything I use is "statically linked" into it. Doin

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread Francisco J Ballesteros
but if you insert extra music in front of your track dedup in venti won't help. or would it? On Sat, Jan 14, 2012 at 12:10 AM, Aram Hăvărneanu wrote: > erik quanstrom wrote: >> an extra copy or 100 of the distribution >> will be <1% of a new hard drive, even with >> no de-dup. > > Sure, but there

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread Aram Hăvărneanu
On Sat, Jan 14, 2012 at 12:14 AM, Francisco J Ballesteros wrote: > but if you insert extra music in front of your track dedup in venti won't > help. > or would it? It wouldn't. In practice it seems that it usually appends, probably for performance reasons, so for me it had worked so far absolute

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread cinap_lenrek
dedubstep! -- cinap

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread Bakul Shah
On Sat, 14 Jan 2012 00:14:25 +0100 Francisco J Ballesteros wrote: > but if you insert extra music in front of your track dedup in venti won't > help. > or would it? No. Venti operates at block level. You are better off using an SCM like mercurial (though commits are likely to be slow). In ca

Re: [9fans] miau, an IRC bouncer

2012-01-13 Thread John Floren
On Fri, Jan 13, 2012 at 1:05 PM, Yaroslav wrote: > well, there is a session persistense in Plan 9, and its name is vncs(1)… > Opening mibbit in a web browser is easier than installing a VNC client on every computer I use. Do you have some personal problem with IRC bouncers that makes you despera

Re: [9fans] fossil pb: FOUND!

2012-01-13 Thread dexen deVries
On Saturday 14 January 2012 01:30:32 Bakul Shah wrote: > On Sat, 14 Jan 2012 00:14:25 +0100 Francisco J Ballesteros wrote: > > but if you insert extra music in front of your track dedup in venti won't > > help. or would it? > > No. Venti operates at block level. there are two ways around it a