Re: How to determine whether a file was opened O_DIRECT?

From: Helge Hafting
Date: Tue Aug 29 2006 - 04:55:34 EST


BÃszÃrmÃnyi ZoltÃn wrote:
Hi,

I would like to run some diagnostics on a database
process and I would like to know what flags it used
for opening its files. Is there any way to get this info?

Thanks in advance,
ZoltÃn BÃszÃrmÃnyi
1. Look at the source code for the database - if you have it.
2. Run your database under strace, then search the voluminous
output for "open" calls and look at the flags.
3. Patch your kernel to "printk" information whenever
someone opens with O_DIRECT.

Helge Hafting
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/