bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem report & fix


From: Michal Moskal
Subject: problem report & fix
Date: Fri, 15 Feb 2002 18:26:52 +0100
User-agent: Mutt/1.3.27i

During cvs up of huge modules (few gigs or so, all files in one directory,
it was rpm/SOURCES module in PLD Linux cvs repository), we noticed that
cvs pserver process grows until swap in cvs server ends.

After some investigation I found, that it's becouse of async buffers in
cvs. When you do cvs up and press ctrl-z you might note that pserver
process reads all the files to ram (it grows until it gets to the size
of repo). This is actually how async buffer behaves, if it cannot write,
it buffers :) But I guess there should be some limit placed on it.
I arbitratry choose 100 data_buffer structures, you will probably want
to make it configurable (I had reports that it can be too small).
Also using usleep() where I did it probably ain't portable or
particulary wise, but it works.

Cheers

-- 
: Michal ``,/\/\,       '' Moskal    | |            : GCS {C,UL}++++$
:          |    |alekith      @    |)|(| . org . pl : {E--, W, w-,M}-
:    Linux: We are dot in .ORG.    |                : {b,e>+}++ !tv h
:  CurProj: Gont Compiler: http://gont.pld.org.pl/  : PLD Team member

Attachment: cvs-fixed_buffer.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]