Skip to main content

developerWorks >  AIX and UNIX  >  Forums  >  AIX Forum  >  developerWorks

Clearing File System Cache on AIX    Point your RSS reader here for a feed of the latest messages in this thread


Tags for this thread: 

     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is answered.

Permlink Replies: 8 - Pages: 1 - Last Post: Nov 10, 2009 2:13 PM Last Post By: Adamskis
Adamskis

Posts: 4
Registered: Nov 05, 2009 04:16:04 PM
Clearing File System Cache on AIX
Posted: Nov 05, 2009 04:21:51 PM
 
Click to report abuse...   Click to reply to this thread Reply
I have a relatively unique situation where a group of testers that are accessing various files for testing software are running into an issue where our AIX servers are being too efficient. They are running tests that reference files, after the test are done they will make modifications to the application parameters and re-test, the problem is that the files are being read from the cache and returning very good performance numbers, as one would expect/desire....except for my testers. They want it to run like the server has never seen the files before.
Is there a way to clear the file system cache on an AIX server short of rebooting it? On a Linux server I would just use drop_cache, but I haven't been able to find much in regard to a comparable tool on AIX. Anyone ran into this kind of a need before? Thank you.
dukessd

Posts: 210
Registered: Nov 18, 2006 09:50:11 PM
Re: Clearing File System Cache on AIX
Posted: Nov 05, 2009 08:21:32 PM   in response to: Adamskis in response to: Adamskis's post
 
Click to report abuse...   Click to reply to this thread Reply
AFAIK no.
reboot
Sorry.
The_Doctor

Posts: 23
Registered: Feb 05, 2009 09:54:33 PM
Re: Clearing File System Cache on AIX
Posted: Nov 06, 2009 01:27:46 AM   in response to: Adamskis in response to: Adamskis's post
 
Click to report abuse...   Click to reply to this thread Reply
Haven't tried this myself, but have a look at the mount command.

mount -p

or

mount -o rbrw

looks like it might do what you want.
Valued Contributor j.gann

Posts: 93
Registered: Nov 28, 2007 08:54:14 AM
Re: Clearing File System Cache on AIX
Posted: Nov 06, 2009 04:07:11 AM   in response to: Adamskis in response to: Adamskis's post
 
Click to report abuse...   Click to reply to this thread Reply
more options: umount the fs between tests
or use direct io (dio mount parameter)
Adamskis

Posts: 4
Registered: Nov 05, 2009 04:16:04 PM
Re: Clearing File System Cache on AIX
Posted: Nov 06, 2009 11:22:55 AM   in response to: The_Doctor in response to: The_Doctor's post
 
Click to report abuse...   Click to reply to this thread Reply
Thank you, I completely blanked on looking at the file systems themselves. These options probably will work, but the testers would like to take advantage of the caching while they are running the jobs on a first run basis...so while this would work it's not ideal because it would impair the performance at all times.
Adamskis

Posts: 4
Registered: Nov 05, 2009 04:16:04 PM
Re: Clearing File System Cache on AIX
Posted: Nov 06, 2009 11:24:13 AM   in response to: j.gann in response to: j.gann's post
 
Click to report abuse...   Click to reply to this thread Reply
This did exactly what we were looking for...unmount and remount the file systems that data was on and the cache dumps....thank you, this will save me lots of time in rebooting!
dukessd

Posts: 210
Registered: Nov 18, 2006 09:50:11 PM
Re: Clearing File System Cache on AIX
Posted: Nov 06, 2009 07:42:47 PM   in response to: Adamskis in response to: Adamskis's post
 
Click to report abuse...   Click to reply to this thread Reply
Nice one, of course an unmount would dump the cache, now why wasn't that obvious at 01:30 after so much beer....
Well done j.gann, no wonder you are a VC.
Kosala

Posts: 35
Registered: Jun 23, 2009 02:28:15 AM
Re: Clearing File System Cache on AIX
Posted: Nov 07, 2009 01:42:47 AM   in response to: j.gann in response to: j.gann's post
 
Click to report abuse...   Click to reply to this thread Reply
The way I see direct IO (dio) is a good option or you can try playing with minfree, maxfree, minperm and maxperm.

http://publib.boulder.ibm.com/infocenter/tsminfo/v6/index.jsp?topic=/com.ibm.itsm.perf.doc/c_aix_vmo_ioo.html
http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds6/vmo.htm
Adamskis

Posts: 4
Registered: Nov 05, 2009 04:16:04 PM
Re: Clearing File System Cache on AIX
Posted: Nov 10, 2009 02:13:54 PM   in response to: Kosala in response to: Kosala's post
 
Click to report abuse...   Click to reply to this thread Reply
Just following up on the dio option. In our situation where we are thrashing through lots of records\and referencing data on the file system in question, losing the caching during the run was indeed a huge hit on the performance. A basic test that took two hours to run with the fs caching was only 20% after three hours with the file system mounted in dio mode(we pulled the plug there so I don't have a true end to end test result). I wasn't expecting the impact to be that dramatic, but it was. We'll stick with yanking the rug out from under....of course now I'll need to script something that will enable the engineers to do it at will via sudo....
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums