func GetCgroupMemoryLimit() (uint64, error) {
	return readUint(cgroupMemLimitPath)
}
GetCgroupMemoryLimit returns a container's total memory in bytes
package gxruntime
import (
	"io/ioutil"
	"os"
	"runtime"
	"runtime/pprof"
	"strconv"
	"strings"
	"time"
)
import (
	"github.com/shirou/gopsutil/mem"
	"github.com/shirou/gopsutil/process"
)
import (
	"github.com/dubbogo/gost/path/filepath"
)
var CurrentPID = os.Getpid()
const (
	cgroupMemLimitPath = "/sys/fs/cgroup/memory/memory.limit_in_bytes"
)
func GetCPUNum() int {
	return runtime.NumCPU()
}
func GetMemoryStat() (total, used, free uint64, usedPercent float64) {
	stat, err := mem.VirtualMemory()
	if err != nil {
		return 0, 0, 0, 0
	}
	return stat.Total, stat.Used, stat.Free, stat.UsedPercent
}
func IsCgroup() bool {
	ok, _ := gxfilepath.Exists(cgroupMemLimitPath)
	if ok {
		return true
	}
	return false
}