9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] lucio-
@ 2002-01-10  1:36 okamoto
  2002-01-10 13:52 ` Boyd Roberts
  0 siblings, 1 reply; 22+ messages in thread
From: okamoto @ 2002-01-10  1:36 UTC (permalink / raw)
  To: 9fans

>GNU software that have been (more or
>less) justifiably denigrated in this forum,

Russ is mainly concerned with kernal and library sources of Plan 9
where he probably has to look around many areas everyday.   In our case,
we don't concern those in any sense, and only with a particular application.
In such a circumstance, I like CVS, but Russ does /n/dump...
In conclusion, I suppose Russ is not denigrating GNU software.  In case of
Boyd, I don't know.  :-)

Kenji



^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: [9fans] lucio-
@ 2002-03-05  1:42 Russ Cox
  0 siblings, 0 replies; 22+ messages in thread
From: Russ Cox @ 2002-03-05  1:42 UTC (permalink / raw)
  To: 9fans

> I believe that the current implementation of dump snapshotting
> bogs down the fileserver so it would be annoying to run it
> when people are doing work and that is why dump snapshotting
> runs in the wee hours at Bell Labs.

Another advantage (I don't know whether it is a reason) is that
5am is a time when things are reasonably quiet.  The files as
they are at 5am is more likely to be something I want to remember than
what they are at 3pm, say, when things are typically in flux.

If anyone cares, here's the elapsed times for the last week of dumps:

mon 2:32
tue 3:22
wed 3:48
thu 2:58
fri 3:48
sat 4:12
sun 2:29
mon 2:22

As you say, it would not be hard at all to use something like sequence
numbers to make the dump faster.  Perhaps that is what NetApp does.
I'm still not convinced that allowing anyone to force a dump
really helps with the revision control problem though.

Personally, I like the fact that the dump takes a few minutes.
When I get on a bad sleep schedule, the dump is usually enough
to convince me to stop what I'm doing and go to bed.

Russ



^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: [9fans] lucio-
@ 2002-03-05  0:10 geoff
  2002-03-05 17:07 ` Dan Cross
  2002-03-11 10:05 ` Luis Fernandes
  0 siblings, 2 replies; 22+ messages in thread
From: geoff @ 2002-03-05  0:10 UTC (permalink / raw)
  To: 9fans

It depends what you mean by ``bogs down the fileserver''.  Depending
on how many dirty blocks are in the mag disk cache, triggering a dump
to worm disks makes the file server completely unresponsive to
requests from the network for anywhere from a few seconds to a couple
of minutes while the copy-on-write fork of the file system is
performed.  Thereafter, it can take quite a while (depending on the
speed of worm writing) to complete the dump, but performance of the
file server is essentially unaffected.

So warning people in advance of a dump would give them time to take a
short break and get coffee or coke without feeling annoyed.  I have
occasionally wished for a more direct means of notifcation than mail,
perhaps the ability to write a short message after the time in a
vismon window or pop up an acme window containing a brief message.



^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: [9fans] lucio-
@ 2002-01-10 15:31 rob pike
  0 siblings, 0 replies; 22+ messages in thread
From: rob pike @ 2002-01-10 15:31 UTC (permalink / raw)
  To: 9fans

Dump includes everything and is totally automatic. Those are its
advantages.  I have used it to find old mail messages, files I've deleted,
the day on which a log file first appeared, and countless other things.
Source code control applies only to what you give it and when you
give it.  For that narrow domain, it may be better, but the narrowness
makes comparing CVS to /n/dump a dull exercise.

-rob



^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: [9fans] lucio-
@ 2002-01-10 11:07 forsyth
  0 siblings, 0 replies; 22+ messages in thread
From: forsyth @ 2002-01-10 11:07 UTC (permalink / raw)
  To: 9fans

>>dump wins out over the SCCS/RCS/CVS per-application approaches by
>>including more of the environment: e.g. compiler, system includes.
>>(In practice, has this been a significant win at the Labs?)

it has been a boon to me/us, and often allows the source of a problem to be isolated more quickly
(often by eliminating the possibility of faults caused by changes elsewhere).  as well as obvious
system software, it also saves design notes, supporting documents, time logs, mail boxes, all automatically.
having all those, as well as compilers, host and target libraries, and system includes, have saved
me time.   time that's then squandered trying to wade through ./configure or config.h when importing things,
but that's another matter.



^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: [9fans] lucio-
@ 2002-01-09  7:06 okamoto
  0 siblings, 0 replies; 22+ messages in thread
From: okamoto @ 2002-01-09  7:06 UTC (permalink / raw)
  To: 9fans

>CVS wouldn't have helped any more than the
>dump here.

Here, I and Yoshitatsu have different time schedules each other.  :-)
I usually appear and disappear earlier than him.   Then, I ask him
to make commit if you have something to tell me.  Then, next
morning I update it.   If there is no update, nothing happens.  This is
all the simple usage of cvs here.  ^_^
Yes, it's doing job!  Thanks Russ.

Kenji



^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: [9fans] lucio-
@ 2002-01-09  5:41 geoff
  0 siblings, 0 replies; 22+ messages in thread
From: geoff @ 2002-01-09  5:41 UTC (permalink / raw)
  To: 9fans

Assuming OLDWAY is undefined, there's more than one fd leak in the
original APE getcwd.  The whole nsread function leaks; I count five
returns with fd still open.



^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: [9fans] lucio-
@ 2002-01-09  5:08 Russ Cox
  2002-01-09  5:32 ` Lucio De Re
  0 siblings, 1 reply; 22+ messages in thread
From: Russ Cox @ 2002-01-09  5:08 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 1301 bytes --]

> No offense meant, but doesn't this show precisely what CVS's strength
> is?  Had you recorded the fix, we wouldn't be still looking for it :-)

It shows that I should keep better
records of what I do each day.

Even if I had the CVS source under
CVS, I probably would have thrown out
the repository when I ported the new one.
Further, I'm not sure whether the bug was
in CVS or in APE.

If I remembered what was broken,
I could run history to find it.

Case in point: I just found it, by
poking around for files in /sys/src/ape
modified about the same date as when I
ported the new CVS (which I remember being
near when I found the bug).

CVS wouldn't have helped any more than the
dump here.

The bug is in /sys/src/ape/lib/ap/plan9/getcwd.c.
Replace the entire file with:

#include "lib.h"
#include <stddef.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include "sys9.h"
#include "dir.h"

char*
getcwd(char *buf, size_t len)
{
	int fd;

	fd = _OPEN(".", OREAD);
	if(fd < 0) {
		errno = EACCES;
		return 0;
	}
	if(_FD2PATH(fd, buf, len) < 0) {
		errno = EIO;
		_CLOSE(fd);
		return 0;
	}
	_CLOSE(fd);

	return buf;
}

Exercise to the reader: find the fd leak in the
original.

Russ

[-- Attachment #2: Type: message/rfc822, Size: 2436 bytes --]

From: Lucio De Re <lucio@proxima.alt.za>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] lucio-
Date: Wed, 9 Jan 2002 06:52:59 +0200
Message-ID: <20020109065259.G12098@cackle.proxima.alt.za>

On Tue, Jan 08, 2002 at 10:06:45PM -0500, Russ Cox wrote:
>
> For the list, I've fixed this bug before.
> I remember it being a neat bug, but I don't
> remember what it was.  Once Lucio and I figure
> it out again, one of us will post what the
> problem was.  Perhaps it was cvs, perhaps APE,
> perhaps some weird interaction between the
> two.  I've been trying to remember all day.
>
No offense meant, but doesn't this show precisely what CVS's strength
is?  Had you recorded the fix, we wouldn't be still looking for it :-)

But I agree wholeheartedly that CVS is only a partial solution and
that the needs it attempts to address vary widely.  I'm tempted to
create a mailing list specially to discuss a CVS-like development
that merges the Plan 9 backup technology into it.  Any takers?

++L

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: [9fans] lucio-
@ 2002-01-09  3:06 Russ Cox
  2002-01-09  4:49 ` Lucio De Re
  2002-01-09  4:52 ` Lucio De Re
  0 siblings, 2 replies; 22+ messages in thread
From: Russ Cox @ 2002-01-09  3:06 UTC (permalink / raw)
  To: 9fans

For the list, I've fixed this bug before.
I remember it being a neat bug, but I don't
remember what it was.  Once Lucio and I figure
it out again, one of us will post what the
problem was.  Perhaps it was cvs, perhaps APE,
perhaps some weird interaction between the
two.  I've been trying to remember all day.

I also have a newer cvs (1.11p1) and a script
to automatically port new ones as they come out.
I will post all of this once the elusive bug
gets discovered.

A question for the CVS experts: how can CVS import
possibly work?  I thought CVS used RCS as the
underlying storage facility, and AFAIK I didn't
port RCS.  Does CVS reimplement/contain the RCS code
like it does for diff?

Russ


^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: [9fans] lucio-
@ 2002-01-09  1:04 okamoto
  0 siblings, 0 replies; 22+ messages in thread
From: okamoto @ 2002-01-09  1:04 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 240 bytes --]

Please, don't close this discussion, because we are also using your CVS
porting here and have interest on this topic.   We don't face this specific
problem though, because we don't have not so many directories and files.  :-)

Kenji


[-- Attachment #2: Type: message/rfc822, Size: 1589 bytes --]

From: "Russ Cox" <rsc@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: [9fans] lucio-
Date: Tue, 8 Jan 2002 13:01:42 -0500
Message-ID: <20020108180144.A46CB199BE@mail.cse.psu.edu>

are you getting my emails (not sent to 9fans)?

^ permalink raw reply	[flat|nested] 22+ messages in thread
* [9fans] lucio-
@ 2002-01-08 18:01 Russ Cox
  0 siblings, 0 replies; 22+ messages in thread
From: Russ Cox @ 2002-01-08 18:01 UTC (permalink / raw)
  To: 9fans

are you getting my emails (not sent to 9fans)?



^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2002-03-11 10:05 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-10  1:36 [9fans] lucio- okamoto
2002-01-10 13:52 ` Boyd Roberts
  -- strict thread matches above, loose matches on Subject: below --
2002-03-05  1:42 Russ Cox
2002-03-05  0:10 geoff
2002-03-05 17:07 ` Dan Cross
2002-03-11 10:05 ` Luis Fernandes
2002-01-10 15:31 rob pike
2002-01-10 11:07 forsyth
2002-01-09  7:06 okamoto
2002-01-09  5:41 geoff
2002-01-09  5:08 Russ Cox
2002-01-09  5:32 ` Lucio De Re
2002-01-09  6:01   ` Lucio De Re
2002-01-10 10:37   ` Bruce Janson
2002-03-04 21:14     ` Richard Uhtenwoldt
2002-01-09  3:06 Russ Cox
2002-01-09  4:49 ` Lucio De Re
2002-01-09  4:52 ` Lucio De Re
2002-01-09 10:58   ` Boyd Roberts
2002-01-09 16:01   ` Aharon Robbins
2002-01-09  1:04 okamoto
2002-01-08 18:01 Russ Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).