You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: utils.rs
    path of file: ./repos/greptimedb/src/common/config/src
    
    the code of the file until where you have to start completion: // Copyright 2023 Greptime Team
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file excep
    
pub fn get_sys_total_memory() -> Option<ReadableSize> {
    if sysinfo::IS_SUPPORTED_SYSTEM {
        let mut sys_info = System::new();
        sys_info.refresh_memory();
        let mut total_memory = sys_info.total_memory();
        // Compare with cgroups memory limit, use smaller values
        // This method is only implemented for Linux. It always returns None for all other systems.
        if let Some(cgroup_limits) = sys_info.cgroup_limits() {
            total_memory = total_memory.min(cgroup_limits.total_memory)
        }
        Some(ReadableSize(total_memory))
    } else {
        None
    }
}