Project

General

Profile

Actions

Bug #4854

closed

read more than they should

Added by Andras Elso almost 11 years ago. Updated almost 11 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

3.8 kernel module, mount params (read ahead = 0):

x.x.x.x:/ on /srv/videos type ceph (name=test,rsize=0,rasize=0,key=client.test)

there is a little test program to read 4 bytes from the begining of a file (source code)

Here is the strace log, so the app really reads 4 bytes:

open("/srv/videos/x.mp4", O_RDONLY) = 3
read(3, "\0\0\0 ", 4)                   = 4
close(3)                                = 0

But the ceph kernel debug say:

[370581.014576] ceph:  aio_read ffff8803e19d3738 10000011749.fffffffffffffffe 0~4 got cap refs on Fcr
[370581.014581] ceph:  readpages ffff8803e19d3738 file ffff880425d49800 nr_pages 4 max 0
[370581.014583] ceph:  start_read ffff8803e19d3738 nr_pages 4 is 0~16384

And i see ~16k bytes data transfer from osd.

Actions #1

Updated by Zheng Yan almost 11 years ago

  • Status changed from New to Rejected

this is due to readahead. readahead can be disabled by posix_fadvise(2)

Actions

Also available in: Atom PDF