Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have an application which is doing a lot of file operations.Its doing a lots of file read and write operations(lot of small files). We have found that some of the files are getting mixed up randomly. Output of file1 is going to file2 and so on. There is no concurrency issue from code that we have verified. Its working in all other platforms expect AIX.

In Solaris we faced this issue, but after enabling directio this issue is resolved.

In AIX we tried to enable dio, still this problem persists.

  1. OS : AIX 6.1.6.3
  2. Architecture : Power 6;
  3. 8 core with SMT on
  4. Storage : SAN
  5. FileSystem : JFS2

Thanks Nikesh PL

share|improve this question

1 Answer 1

Well, it's not working on all platforms. It's not working on Solaris, until you enable direct I/O. Direct I/O forces synchronous writes and disables readahead, so you are changing timing of I/O, possibly masking the root cause.

You can try debugging your app, which may be difficult and time consuming, or you can just slap a band-aid and enable direct I/O on AIX too.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.