I'm currently trying to code a Python program to display the amount of RAM, my system has along with its type and CPU's cache size. It would really helpful if anyone could help me figure this out. Thank you and have a good day!
1 Answer
If you are using Windows: For amount of RAM, use ctypes to call GetPerformanceInfo on a psapi WinDLL instance or GetPhysicallyInstalledSystemMemory on a kernel32 WinDLL instance. For cache, use GetLogicalProcessorInformation on a kernel32 WinDLL instance. For DRAM type, use SMBIOS or Win32_PhysicalMemory WMI class and make a WMI query (example using the Win32_Process class).