[OpenAFS] Re: Windows TGS_REQ on alternate Netbios Names

Jeffrey Altman jaltman@columbia.edu
Mon, 01 Dec 2003 12:37:43 -0500


This is a cryptographically signed message in MIME format.

--------------ms060802070606050205000102
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Rodney M Dyer wrote:

> Jeffrey,
>
> At 03:59 PM 11/30/2003, Jeffrey Altman wrote:
>
>> The cache file is memory mapped.
>
>
> So what exactly is the point of the AFS cache file then, I mean if the 
> info is going to be in the Windows swap file anyway?

One benefit that would seem obvious is that the cache file allows 
persistence across afsd_service invocations. 

>> So this is likely causing 256MB of memory to be allocated and paged.
>
>
> Ok yea, my experiment this morning confirmed this observation.


>>   How much physical and paging memory do your systems have?
>
>
> All the machines have 256 Meg physical memory with 384 Meg page 
> initial, 768 Meg page max.
> The AFS cache file is set to 256 Meg.

I wouldn't create a cache file larger than 32MB on these systems.

>> When examining the afsd_service.exe process in the Task Manager, what 
>> are the values of the "Mem Usage" and "Handles" columns? 
>
>
>
>
> I suppose I can set a smaller AFS cache, but according to you there 
> should be some kind of sweet point where too low does little good, and 
> too high is diminished return, and worse a slow machine.  And this 
> uglyness is dependent on the amount of RAM a machine has.


More importantly, the overall cache size and the chunk size should be 
determined based upon the usage patterns.  You should also be aware that 
for every allocated "chunk" there is one handle.  That means that a 256 
MB cache with a 32kb chunk size is going to allocate 8192 handles.  The 
available handle count in the windows kernel is fixed.  Depending on 
what else you are executing, the allocation of 8192 handles could lead 
to an inability to create threads, start processes, open files, etc on 
the system.  I do not believe you should allow more than 1000 handles to 
be allocated to afsd.

Jeffrey Altman


--------------ms060802070606050205000102
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJUDCC
AwYwggJvoAMCAQICAw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