Cwd failing?

Matts on 2007-09-20T15:42:48

Has anyone seen cwd() failing on an extremely high load server? I don't really understand why it fails (only happens under extreme load), and wondered if anyone had any insight.


My guess

djberg96 on 2007-09-20T18:51:45

There's a race condition of some sort.

Googling for "getcwd" + "heavy load" turned up some other possible clues, and NFS is mentioned on occasion.

Re:My guess

Matts on 2007-09-20T19:22:46

Thanks. For now I've just moved getcwd() out of the loop so I only have to do it once. I'm still curious why it fails though - google hasn't been very helpful in this.