Re: FW: increasing the amount of memory that can be registered

"Reese Faucette" <[email protected]> Fri, 12 Nov 2004 12:36:00 -0800
Newsgroups gmane.network.myrinet.general
Message-ID <003101c4c8f7$38ab1530$cdc31fac@bart>
> Word of mouth is that it is possible to specify the amount of memory
> that is available to be registered as a parameter. Can I increasing the
> upper limit for the amount of memory gm can register by specifying it as
> a parameter for the gm module? Could you tell me how to do that? I was
> unable to find it in the documentation.

When you insmod the driver, specify "gm_max_locked_mbytes=MMM" when MMM is 
the maximum number of megabytes of memory you with to allow GM to register.

> Also, how is the upper limit determined?

There are several factors, but in a system with plenty of memory and no 
IOMMU limitations, the default is 50% of physical memory.

> I was seeing in the documents somewhere that when same memory is
> registered for 2 ports, gm realizes it and avoids duplication. Is it
> true.

I'm not sure what exactly you mean by "avoids duplication", but reference 
counts are kept on registered pages, and the memory will only be 
unregistered when the last instance is "deregistered".  In short, GM handles 
multiple registration calls on the same memory region properly, whether on 
the same port or not.

-reese