Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* ubc_borrowpercent ? What's the purpose of these param?
@ 2003-06-18  9:16 dompie
  2003-06-18 10:08 ` Lukasz Tylutki
  0 siblings, 1 reply; 2+ messages in thread
From: dompie @ 2003-06-18  9:16 UTC (permalink / raw)


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.

Kd


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

* Re: ubc_borrowpercent ? What's the purpose of these param?
  2003-06-18  9:16 ubc_borrowpercent ? What's the purpose of these param? dompie
@ 2003-06-18 10:08 ` Lukasz Tylutki
  0 siblings, 0 replies; 2+ messages in thread
From: Lukasz Tylutki @ 2003-06-18 10:08 UTC (permalink / raw)


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.



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

end of thread, other threads:[~2003-06-18 10:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-18  9:16 ubc_borrowpercent ? What's the purpose of these param? dompie
2003-06-18 10:08 ` Lukasz Tylutki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox