* Copyright (c) Huawei Technologies Co., Ltd. 2022. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
* Description: Define shared memory ShmMemStat struct.
*/
#ifndef DATASYSTEM_COMMON_SHARED_MEMORY_MEMSTAT_H
#define DATASYSTEM_COMMON_SHARED_MEMORY_MEMSTAT_H
#include <cstdint>
namespace datasystem {
namespace memory {
struct ShmMemStat {
uint64_t memoryUsage = 0;
uint64_t maxMemoryLimit = 0;
uint64_t objectMemoryUsage = 0;
uint64_t realMemoryUsage = 0;
uint64_t physicalMemoryUsage = 0;
uint64_t numOfAllocated = 0;
uint64_t numOfFds = 0;
uint64_t refPageCount = 0;
uint64_t noRefPageCount = 0;
};
}
}
#endif