use sysctlbyname("hw.memsize") to get sytem memory size instead of host_info, host_info is not available on tvOS, so we change to sysctlbyname which support all apple platforms apple document didn't stat this API is available on tvOS though, https://developer.apple.com/documentation/kernel/1387446-sysctlbyname