50 likes | 156 Views
Cache Management and File Transfers. Start cmanager read cm.config and set FreeDisk parameter Receive request from QM to stage/purge file (FID) Stage: get file name and file size if size less than FreeDisk set FreeDisk = FreeDisk - size start transfer and inform QM else
E N D
Cache Management and File Transfers • Start cmanager • read cm.config and set FreeDisk parameter • Receive request from QM to stage/purge file (FID) • Stage: get file name and file size • if size less than FreeDisk • set FreeDisk = FreeDisk - size • start transfer and inform QM • else • inform QM that disk is full • Purge: • delete file • set FreeDisk = FreeDisk + size
Obtaining File Names and Sizes • cmanager gets FID from QM • from FID gets name from Objectivity • from name gets size from filesize.txt • filesize.txt (ascii) lists names and sizes • if it gets too large need to use FIDs and sizes (binary) • with HPSS Client API can get sizes at run time • either through hpss_Fstat or (AMS) oofs_getsize
CM - AMS Interface • AMS keeps a mapping between logical file pathnames (as known by Objectivity) and physical ones (either HPSS or local disk) • CM will talk to AMS before staging and after purging files • check or change mapping • Coordination between CM and AMS is still an issue • AMS uses a timeout mechanism • CM has more information and wants to make use of it