From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,3e99d077daa8d6f4 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-06-18 03:14:56 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: Lukasz Tylutki Newsgroups: comp.unix.tru64 Subject: Re: ubc_borrowpercent ? What's the purpose of these param? Date: Wed, 18 Jun 2003 12:08:42 +0200 Organization: tp.internet - http://www.tpi.pl/ Message-ID: References: NNTP-Posting-Host: ra190.internetdsl.tpnet.pl Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: nemesis.news.tpi.pl 1055931330 27060 80.55.52.190 (18 Jun 2003 10:15:30 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Wed, 18 Jun 2003 10:15:30 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: pl, en-us, en Xref: archiver1.google.com comp.unix.tru64:10072 Uz.ytkownik dompie napisa?: > Hi, > > I don't understand what the 'ubc_borrowpercent' kernel param is used > for. > Basically, to configure the UBC, you can set the min (usually 10%) and > the max (usually 100%) physical memory usage. > But what is the purpose of the 'ubc_borrowpercent' param? The manual > states that this param indicates the memory 'borrowed' from the VM. > But I don't see the point of this param. Doesn't the VM take all the > memory it needs (except the 10% for the ubc min) when it needs memory? > When does the ubc borrow from the VM memory. Why? Is there any way you > can see if the UBC has borrowed memory from the VM? > Isn't this bad for the system? I mean, if the UBC needs to borrow > memory from the VM, doesn't this happen when the system has no more > physical memory left? > > I am confused, any help would be greatly appreciated. Hi, According to the tuning course: "The ubc_borrowpercent attribute determines the point beyond which the UBC is considered to be borrowing pages from the VM side. When the free list gets low, these loans are called back in to replenish the free page list. (...) Once the UBC is brought down to ubc_borrowpercent, pages are claimed from the UBC and from VM side in order to replenish the FPL". In practice, if the UBC extends beyond ubc_borrowpercent, it will never get shrinked below ubc_borrowpercent, even if it will be big demand of VM. In one of my system we use such values: ubc_minpercent=10 ubc_borrowpercent=20 ubc_maxpercent=60 the values are (in my opinion, confirmed by performance) the best. But! We have the system with 16GB of RAM, where the application and users use up to 9GB, the rest is the UBC. During the EOD, we use memory almost at all for UBC purposes (60%). The greater values of borrowpercent and maxpercent (with this value of physical memory) cause strong performance loss. Best greetings: TYlut -- ?ukasz Tylutki, Gdynia, Poland.