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.
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.
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!
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.
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
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.