1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00
This commit is contained in:
David Hill
2018-09-21 10:40:05 -05:00
parent 455776ed49
commit 4e6e5647ef
11 changed files with 62 additions and 37 deletions

View File

@ -39,6 +39,8 @@ extern ProcessMemoryList pml;
extern pthread_mutex_t CPU_LOCK;
extern pthread_mutex_t MEMORY_LOCK;
extern string tmpDir;
/**
* constants define
*/
@ -252,9 +254,12 @@ void msgProcessor()
ByteStream ackmsg;
// get cache MEMORY stats
system("cat /proc/meminfo | grep Cached -m 1 | awk '{print $2}' > /tmp/cached");
string tmpcached = tmpDir + "/cached";
string cmd = "cat /proc/meminfo | grep Cached -m 1 | awk '{print $2}' > " + tmpcached;
system(cmd.c_str());
ifstream oldFile ("/tmp/cached");
ifstream oldFile (tmpcached);
string strCache;
long long cache;