All LHC experiments use dCache as a front end to file access at most T1 sites.
At CCIN2P3, dCache is interfaced whith HPSS. While writing to the mass strorage system is effective, reading from it has shown to be most unsatisfying.
The major cause of this issue is that dCache has no knowledge about the files location on tape and the reading requests are rather chaotic from the HPSS point of view. It generates a lot of useless tape mount and dismount and the average dCache activity impacts the HPSS system badly.
We present here TReqS, a method for scheduling the file requests and submit them to HPSS to ensure a staging order and minimize the access latency due to the tape movements in the library. TReqS is based on BNLBatch, itself based on OakRidge batch Scheduler.
We will present the global concept and show the results and the conclusions of 6 month of tape scheduling.