hwqhx 发表于 2011-12-31 00:17:20

About KGLHD function in shared pool

谁有关于share pool中KGLHD  function 相关的介绍?

Maclean Liu(刘相兵 发表于 2011-12-31 12:32:00

KGLHD is not Function

KGL ->  Kernel Generic Library
KGLHD  Library cache Handle structure
KGLOB - Object structure
KGLNA - Name structure



KGLHD -> KGLOB
               ->  KGLNA -> KGLNA->KGLNA




Object Handles

All objects that are stored in the library cache are accessed by using handles (kglhd). The handle stores the name of the object, its namespace, some flags that are used to get information about the object (if the object is read-only, remote or local, in CGA memory, marked to be kept pinned in memory, and so on), and statistical information regarding the object. The handle is also used by the library cache to keep a list of all users who have locks, pins, or references to the object as well as those who are waiting to acquire locks or pins on it.
Object handles are placed in linked lists according to a hashing algorithm, which is a function of the object’s name and namespace.


When a process requests an object, the library cache manager applies the hashing algorithm to determine the linked list (hash bucket) to be searched. If the object is in cache, the appropriate object handle will be found. It is possible for the handle to be in memory but the object heaps have been aged out. The object handle will tell us that. In this case, the required object heaps are reloaded. Finally, it is possible that the object handle is not found. In this case, a new one must be allocated, it must be populated with the object information, and the object heaps must be loaded.


Handles: kglhd

Files kgl.c kgl2.c kgl.h

hwqhx 发表于 2012-1-4 13:04:41

thanks

thanks for your help

aesthetik 发表于 2021-12-30 21:23:07

非常有帮助的解释

aesthetik 发表于 2022-1-4 13:20:44

nice knowledge
页: [1]
查看完整版本: About KGLHD function in shared pool