1

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!

0

1 Answer 1

0

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).

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.