Mem Namespace Reference

Memory Management.


class  AllocatorProxy
class  Meter


void Init ()
void Report ()
void Stats (StoreEntry *)
void CleanIdlePools (void *unused)
void Report (std::ostream &)
void PoolReport (const MemPoolStats *mp_st, const MemPoolMeter *AllMeter, std::ostream &)

Function Documentation

void Mem::CleanIdlePools ( void *  unused)
void Mem::Init ( void  )
NOTE: Mem::Init() is called before the config file is parsed and before the debugging module has been initialized. Any debug messages here at level 0 or 1 will always be printed on stderr.

Then initialize all pools.

Starting with generic 2kB - 64kB buffr pools, then specific object types.
It does not hurt much to have a lot of pools since sizeof(MemPool) is small; someday we will figure out what to do with all the entries here that are never used or used only once; perhaps we should simply use malloc() for those? @?@

Definition at line 412 of file

References GetPool(), MEM_16K_BUF, MEM_2K_BUF, MEM_32K_BUF, MEM_4K_BUF, MEM_64K_BUF, MEM_8K_BUF, MEM_DREAD_CTRL, MEM_DWRITE_Q, MEM_MD5_DIGEST, memDataInit(), Mgr::RegisterAction(), MemAllocator::setChunkSize(), SQUID_MD5_DIGEST_LENGTH, and Stats().

Referenced by testUfs::commonInit(), testRock::commonInit(), commonInit(), fake_auth_setup(), GetPool(), testHttp1Parser::globalSetup(), main(), testHttpReply::setUp(), testDiskIO::setUp(), testPackableStream::setUp(), testURL::setUp(), testCacheManager::setUp(), testHttpRequest::setUp(), testString::setUp(), testEvent::setUp(), testEventLoop::setUp(), SquidMain(), and testSBuf::testSBufConstructDestructAfterMemInit().

void Mem::Report ( )
void Mem::Stats ( StoreEntry sentry)

Definition at line 171 of file

References DBG_IMPORTANT, debugs, memBufStats(), memStringStats(), and Report().

Referenced by Init(), and DelayPools::RegisterWithCacheManager().






Web Site Translations