From: Oliver Neukum on 22 Feb 2010 18:40 Hi, if a filesystem is mounted with -osync will any readahead be done for that filesystem? Regards Oliver -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Oliver Neukum on 22 Feb 2010 19:00 Am Dienstag, 23. Februar 2010 00:48:39 schrieben Sie: > Please, Refer to below articles to understand readahead essentially. > > http://lwn.net/Articles/235164/ (On-demand readahead by corbet) > http://kernelnewbies.org/Linux_2_6_23#head-102af265937262a7a21766ae58fddc1a29a5d8d7( > On-demand read-ahead on Linux 2.6.23) OK, I am looking for a way to make sure read requests on a SCSI drive actually hit the bus after a certain event. Is there a way to do this without tossing away the whole cache? Regards Oliver -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Jeff Moyer on 23 Feb 2010 12:40 Oliver Neukum <oliver(a)neukum.org> writes: > Am Dienstag, 23. Februar 2010 00:48:39 schrieben Sie: >> Please, Refer to below articles to understand readahead essentially. >> >> http://lwn.net/Articles/235164/ (On-demand readahead by corbet) >> http://kernelnewbies.org/Linux_2_6_23#head-102af265937262a7a21766ae58fddc1a29a5d8d7( >> On-demand read-ahead on Linux 2.6.23) > > OK, I am looking for a way to make sure read requests on a SCSI drive > actually hit the bus after a certain event. Is there a way to do this without > tossing away the whole cache? I'm not sure I understand what you're asking, but it sounds like you want to do an O_DIRECT read. Open the file with O_DIRECT, then pass a properly-aligned buffer to the read(2) call. Cheers, Jeff -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|
Pages: 1 Prev: KIA MOTORS INTERNATIONAL PROMOTION Next: isdn: fix a few Kconfig imperfections |