-
Notifications
You must be signed in to change notification settings - Fork 149
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
Throttle implementation #165
Conversation
…en throttles are hit.
…ementation of XrdThrottle SFS.
Conflicts: src/XrdSys/XrdSysAtomics.hh
Conflicts: packaging/rhel/xrootd.spec.in src/XrdPlugins.cmake src/XrdSys/XrdSysAtomics.hh
Hi Brian, You can make throttle apply to sendfile if you enable senddata. So, I Andy On Sun, 16 Nov 2014, Brian Bockelman wrote:
|
Hi Andy, If possible, I'd prefer to work on getting this code reviewed / committed, then enable the missing use cases. Brian |
Hi Brian, Would you mind if we delay merging this in until after we cut 4.1? That release is already complicated enough and I'd like the least amount of noise right before it's supposed to come out. Andy |
Sure, no problem. That'll give me time to look at SendData then! |
Hm - SendData implementation was far easier than originally feared. Just pushed a new commit. In general, reviewing the code again:
So - unless I missed something - when the throttle is loaded, all reads mechanisms are properly accounted for or disabled. For reference, in order to enable this plugin, you need to do: Line 1 enables the throttle; line 2 sets the throttles to 10 outstanding IO requests and 10MB/s of data; line 3 enables all possible debugging. |
Thanks! Could you point me to the full documentation and all the various options and what they really do? It would be nice to get this documented in the standard format. As for the three lines, my assumption is that the "trace all" is not necessary regardless of the implication that it is :-) |
Ah, yes - I should have written "an example is..." What's the best way to include documentation? Should I write it on the ticket or elsewhere? |
It doesn't much matter. A README in the source directory will do for now. I use that to enter it into a word document. |
Alright, documentation updated! |
Latest attempt at merging the throttles code. Brushed off the spiderwebs, fixed some atomics issues; everything looks good right now.
Works fine with an OSS; throttles don't apply for AIO or SendFile. Not sure what I'd need to do for either of those.