50 likes | 162 Vues
This guide outlines the process for effective cache management and file transfers within a data management system. It covers the communication between cache manager (CM) and queue manager (QM), setting parameters like FreeDisk, and steps for staging and purging files based on size limitations. The interaction with the AMS interface is also discussed for mapping file paths, maintaining data consistency, and addressing timeout mechanisms. Additionally, it highlights obtaining file names and sizes using HPSS Client API for seamless operations while managing disk space efficiently.
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