|
xrootd
|
#include <XrdBuffer.hh>

Public Member Functions | |
| void | Init () |
| XrdBuffer * | Obtain (int bsz) |
| int | Recalc (int bsz) |
| void | Release (XrdBuffer *bp) |
| int | MaxSize () |
| void | Reshape () |
| void | Set (int maxmem=-1, int minw=-1) |
| int | Stats (char *buff, int blen, int do_sync=0) |
| XrdBuffManager (XrdSysError *lP, XrdOucTrace *tP, int minrst=20 *60) | |
| ~XrdBuffManager () | |
Private Attributes | |
| XrdOucTrace * | XrdTrace |
| XrdSysError * | XrdLog |
| const int | slots |
| const int | shift |
| const int | pagsz |
| const int | maxsz |
| struct { | |
| XrdBuffer * bnext | |
| int numbuf | |
| int numreq | |
| } | bucket [XRD_BUCKETS] |
| int | totreq |
| int | totbuf |
| long long | totalo |
| long long | maxalo |
| int | minrsw |
| int | rsinprog |
| int | totadj |
| XrdSysCondVar | Reshaper |
Static Private Attributes | |
| static const char * | TraceID = "BuffManager" |
| XrdBuffManager::XrdBuffManager | ( | XrdSysError * | lP, |
| XrdOucTrace * | tP, | ||
| int | minrst = 20*60 |
||
| ) |
|
inline |
| void XrdBuffManager::Init | ( | ) |
References XrdSysError::Emsg(), XrdSysThread::Run(), XrdLog, and XrdReshaper().
Referenced by XrdConfig::Setup().
|
inline |
References maxsz.
Referenced by XrdXrootdProtocol::Configure().
| XrdBuffer * XrdBuffManager::Obtain | ( | int | bsz | ) |
References bnext, bucket, XrdSysCondVar::Lock(), maxalo, maxsz, XrdBuffer::next, pagsz, Reshaper, rsinprog, shift, XrdSysCondVar::Signal(), slots, totalo, totbuf, totreq, and XrdSysCondVar::UnLock().
Referenced by XrdXrootdAio::Alloc(), XrdXrootdProtocol::getBuff(), and XrdXrootdProtocol::Process().
| int XrdBuffManager::Recalc | ( | int | bsz | ) |
References maxsz, shift, and slots.
Referenced by XrdXrootdProtocol::xasync().
| void XrdBuffManager::Release | ( | XrdBuffer * | bp | ) |
References XrdBuffer::bindex, bucket, XrdSysCondVar::Lock(), XrdBuffer::next, Reshaper, and XrdSysCondVar::UnLock().
Referenced by XrdXrootdProtocol::Cleanup(), XrdXrootdProtocol::getBuff(), XrdXrootdProtocol::Process(), and XrdXrootdAio::Recycle().
| void XrdBuffManager::Reshape | ( | ) |
References bnext, bucket, XrdSysCondVar::Lock(), maxalo, maxsz, minrsw, XrdBuffer::next, numbuf, Reshaper, rsinprog, slots, totadj, totalo, totbuf, totreq, TRACE, XrdSysCondVar::UnLock(), XrdSysCondVar::Wait(), XrdSysTimer::Wait(), and XRD_BUCKETS.
Referenced by XrdReshaper().
| void XrdBuffManager::Set | ( | int | maxmem = -1, |
| int | minw = -1 |
||
| ) |
References XrdSysCondVar::Lock(), maxalo, minrsw, Reshaper, and XrdSysCondVar::UnLock().
Referenced by XrdConfig::xbuf().
| int XrdBuffManager::Stats | ( | char * | buff, |
| int | blen, | ||
| int | do_sync = 0 |
||
| ) |
References XrdSysCondVar::Lock(), Reshaper, totadj, totalo, totbuf, totreq, and XrdSysCondVar::UnLock().
Referenced by XrdStats::Stats().
| struct { ... } XrdBuffManager::bucket[XRD_BUCKETS] |
Referenced by Obtain(), Release(), Reshape(), and XrdBuffManager().
|
private |
Referenced by Obtain(), Reshape(), Set(), and XrdBuffManager().
|
private |
Referenced by Reshape(), Set(), and XrdBuffManager().
| int XrdBuffManager::numbuf |
Referenced by Reshape().
| int XrdBuffManager::numreq |
|
private |
Referenced by Obtain(), and XrdBuffManager().
|
private |
|
private |
Referenced by Obtain(), Reshape(), and XrdBuffManager().
|
private |
Referenced by Reshape(), Stats(), and XrdBuffManager().
|
private |
Referenced by Obtain(), Reshape(), Stats(), and XrdBuffManager().
|
private |
Referenced by Obtain(), Reshape(), Stats(), and XrdBuffManager().
|
private |
Referenced by Obtain(), Reshape(), Stats(), and XrdBuffManager().
|
staticprivate |
|
private |
Referenced by Init().
|
private |
1.8.3.1