Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CP-9440: Merge read caching related changes to Master #202

Closed
wants to merge 3 commits into from
Closed

CP-9440: Merge read caching related changes to Master #202

wants to merge 3 commits into from

Conversation

matelakat
Copy link
Contributor

This is the cherry-pick of the read caching commits to the master branch.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) when pulling 43858f6e3d85e37755ea0a500ae8d4104621aedb on matelakat:CAR-1442-to-master into bce4501 on xapi-project:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) when pulling 077511976ce66c8305bafa700e7a0eb96d824b7f on matelakat:CAR-1442-to-master into bce4501 on xapi-project:master.

In preparation for read caching, change actimeo=0 to acdirmin=0,acdirmax=0.
Using "actimeo=0" prevents caching file attributes which means that each read
requires a GETATTR call to the NFS server.  This prevents read caching from
being effective.  Changing the mount options to "acdirmin=0,acdirmax=0"
prevents caching directory attributes but allows caching file attributes.  This
allows read caching to be effective.

This reverts the change made to the mount options in CA-63601.  The issue in
that ticket was a transient issue, fixed by a later build, before the change to
the mount options was made.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@citrix.com>

GitHub: closes #135 on xapi-project/blktap
(cherry picked from commit 8e505ad)

Reason for cherry picking:
    [CP-9440] Merge read caching related changes to Master
Pass the "-D" argument to tap-ctl when opening an EXTFileVDI or an NFSFileVDI
to allow read caching by removing O_DIRECT.

Allow disabling read caching per-SR by setting other-config:o_direct to true.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@citrix.com>

GitHub: closes #135 on xapi-project/blktap
(cherry picked from commit 4be47e0)

Reason for cherry picking:
    [CP-9440] Merge read caching related changes to Master

Conflicts:

	drivers/blktap2.py
With static VDIs, the SR code is run without a XAPI session.  In this
case, set O_DIRECT to be on for safety since there is external knob to
adjust it.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@citrix.com>

GitHub: closes #142 on xapi-project/sm
(cherry picked from commit 6c2d966)

Reason for cherry picking:
    [CP-9440] Merge read caching related changes to Master
@matelakat matelakat changed the title CAR-1442 to master CP-9440: Merge read caching related changes to Master Aug 8, 2014
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) when pulling 5bae3fb on matelakat:CAR-1442-to-master into bce4501 on xapi-project:master.

@matelakat
Copy link
Contributor Author

retest this please

@chandrikas
Copy link
Contributor

These changes are already in master branch (brought over from Creedence -> Trunk merge)

@chandrikas chandrikas closed this Jan 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants