Computer memory is used to store data and instructions and is essential for processing information. There are different units to measure memory size like bits, bytes, kilobytes, megabytes, etc. Memory is classified as primary and secondary. Primary memory directly accessed by CPU, includes RAM and ROM. RAM is volatile and temporary while ROM is non-volatile and permanent. Secondary memory like hard disks and optical disks are used to store large amounts of data for long periods even when power is off. Caches improve processing speed by temporarily storing frequently used data between CPU and primary memory.