linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* readahead man page incorrectly says it blocks
@ 2013-05-17 14:54 Phillip Susi
  0 siblings, 0 replies; 4+ messages in thread
From: Phillip Susi @ 2013-05-17 14:54 UTC (permalink / raw)
  To: linux-mm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The man page for readahead(2) incorrectly claims that it blocks until
all of the requested data has been read.  I filed a bug a few months
ago to have this corrected, but I think it is being ignored now
because they don't believe me that it isn't supposed to block.  Could
someone help back me up and get this fixed?

https://bugzilla.kernel.org/show_bug.cgi?id=54271

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRlkSfAAoJEJrBOlT6nu75vcIH/0bVb3BGAr+obffnDgugX+EB
LAQaj/p83vNV9ND8alsSg0c+Q8iX8m4klSgsiYg78NdM8x0+V1je5n934/KqUTO1
eHWLf+7GcRJ7CuBctaY2U0uSWWrhMjhPqD1HBlTplqH3Wj3xxIf9T4Ym2K4+BW1Z
yx2XAPhmWy57EBE4MtxUSVd01jINZZpyuv2oOCqblLfmUKTWzJvm12eDjnrYQq1/
Ar7trfjFE4HXIyTHIEgQazoi9D4dF8yFHgndd89ZQ2yvSkwe59UXDyequm6IrOCz
mAqIwUS0N5xJ1AdJp6ruZd1VAzyFzZy2Il8XMLLhc9GSPDiXApWiM57oK7DDiFA=
=4Fmb
-----END PGP SIGNATURE-----

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* readahead man page incorrectly says it blocks
@ 2013-10-02 17:15 Phillip Susi
  2013-10-02 22:53 ` Theodore Ts'o
  0 siblings, 1 reply; 4+ messages in thread
From: Phillip Susi @ 2013-10-02 17:15 UTC (permalink / raw)
  To: linux-mm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The man page for readahead(2) incorrectly claims that it blocks until
all of the requested data has been read.  I filed a bug a few months
ago to have this corrected, but I think it is being ignored now
because they don't believe me that it isn't supposed to block.  Could
someone help back me up and get this fixed?

https://bugzilla.kernel.org/show_bug.cgi?id=54271

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSTFS4AAoJEJrBOlT6nu756hwIAJKQZnvazqLi8excUCrqc+HQ
TSokhlBLBqRtk5nGN6X0UpDZ6KPFn0qsRpnhQApyk46nU/ru1YbbZLEtHgrWwaFW
g2V+L248hIyYOYSAr/RCj9g4Zx5yMit6BOM1virD0VJ0cRDSA6mbNI0bVmTxEf+f
9UF2rwnXW63u3NwGjEMboVWCCOrfV3AGCTC31KTY/e2e1SUIlD8IIaRxW0RkVmVj
PCmSVPvpaZoLaDgQ0F+sBBzLrCp9r72UT7j58Zzurj1GaIG2VEVAXKKij0b2Xtxg
vjzflgrMd72pLhb+ppk/RP20FWmp6PJ3wKbK7zVrvILVHzSaoncDApURG/nBpHE=
=zmD3
-----END PGP SIGNATURE-----

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: readahead man page incorrectly says it blocks
  2013-10-02 17:15 Phillip Susi
@ 2013-10-02 22:53 ` Theodore Ts'o
  0 siblings, 0 replies; 4+ messages in thread
From: Theodore Ts'o @ 2013-10-02 22:53 UTC (permalink / raw)
  To: Phillip Susi; +Cc: linux-mm

On Wed, Oct 02, 2013 at 01:15:36PM -0400, Phillip Susi wrote:
> 
> The man page for readahead(2) incorrectly claims that it blocks until
> all of the requested data has been read.  I filed a bug a few months
> ago to have this corrected, but I think it is being ignored now
> because they don't believe me that it isn't supposed to block.  Could
> someone help back me up and get this fixed?
> 
> https://bugzilla.kernel.org/show_bug.cgi?id=54271

We do need to make sure that users of readahead(2) understand that:

(a) readahead(2) *can* block (either to read metadata blocks, or
    perhaps due to a memory allocation from a kmalloc or get_free_page
    requiring pages to be cleaned and evicted)

(b) readhead(2) does *not* guaranteee that once it returns, that a
    subsequent read or access to a mmap'ed page will not block.  That
    is, readhead(2) does not block until the page becomes available in
    the page cache.

BTW, Caveat (a) is also basically how AIO works --- io_submit(2) can
block, which means that if thread was using AIO because it didn't want
to lose control of the CPU, it can get quite disappointed.  (With ext4
we have a way to preread and the file metadata and try very hard to
keep it from getting ejected from memory to minimize this from
happening, precisely because I had some users for which having
io_submit(2) block was highly undesirable.)

So you're right, but we do need to make sure that the resulting change
doesn't cause the reader of the man page causes them to think that
readhead(2) is guaranteeed not to block.

Cheers,

						- Ted




--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* readahead man page incorrectly says it blocks
@ 2014-01-02 20:46 Phillip Susi
  0 siblings, 0 replies; 4+ messages in thread
From: Phillip Susi @ 2014-01-02 20:46 UTC (permalink / raw)
  To: linux-mm, linux-fsdevel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The man page for readahead(2) incorrectly claims that it blocks until
all of the requested data has been read.  I filed a bug last year to
have this corrected, but I think it is being ignored now because they
don't believe me that it isn't supposed to block.  Could someone help
back me up and get this fixed?

https://bugzilla.kernel.org/show_bug.cgi?id=54271
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSxdAkAAoJEI5FoCIzSKrwA8MH/jNRBxTENfpaiB2qNpaxhv5i
FGj4mJ/VEhgntg6iCK7KN1r796GpnG+PI0yAEHcXHsHB2o9JoyB1jnaTUEte3PAb
anetZenfKHbq9pO5/5tYCLY8KX4pBp9xSI3G0SyeZ5aY5/jObj24jEswwViuYlvs
3Ma+zQxpcYnVht29NPhioUOmxBocJkvFleAemHrPydYb9Q6wuHYiIke61sjFYXYy
8sPHhuXfIb6W4NweHmI9RGhijfiRK8AjgUaGvmVx2CzQ5B0vfw0SmAfeMYodkwU5
7M+yyNCKn19IJSbALJ8E1BupHnhe2r3InRXLNfrWXy0JvkbgWFk+fAatkzIUpdQ=
=tZiw
-----END PGP SIGNATURE-----

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-01-02 20:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-02 20:46 readahead man page incorrectly says it blocks Phillip Susi
  -- strict thread matches above, loose matches on Subject: below --
2013-10-02 17:15 Phillip Susi
2013-10-02 22:53 ` Theodore Ts'o
2013-05-17 14:54 Phillip Susi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).