From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4ebc0ddaaccff248,start X-Google-Attributes: gidfee84,public X-Google-Thread: 10650a,4ebc0ddaaccff248,start X-Google-Attributes: gid10650a,public From: "Karl" Subject: How to clear UBC (unified buffer cache)? Date: 1999/07/26 Message-ID: <379cd2eb@rcfnews.cs.umass.edu>#1/1 X-Deja-AN: 505530528 X-Original-NNTP-Posting-Host: 128.119.41.102 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 X-Trace: 26 Jul 1999 17:28:11 -0500, 128.119.41.102 Organization: Dept. of Computer Science, UMass/Amherst Newsgroups: comp.unix.osf.osf1,comp.unix.internals This is regarding Digital Unix OSF1 v4.0 on an alpha I am trying to prevent caching from causing a bias in the timing of different functions that read from disk. I need to time how long two different methods take to read the same data from the same files. Unfortunately, once I've run the first function, so much of the data is cached that the second function appears dramatically faster. This behavior persists even if I swap the order of the functions. Is there a way to programmatically (or *any* way) clear the UBC (Unified Buffer Cache)? Is there a way to clear the metadata buffer cache? Rebooting the system or re-mounting the filesystem are not practical options. Karl