What is the difference between virtual memory (VIRT) and resident memory (RES) in top, and what is shared memory (SHR)?

VIRT is the process's virtual address space, while RES is the portion currently resident in physical memory.

Короткий ответ

Что ответить на собеседовании

VIRT is the process's virtual address space, while RES is the portion currently resident in physical memory.

Подробный разбор

Ответ с пояснениями

VIRT is the process's virtual address space, while RES is the portion currently resident in physical memory.

SHR describes resident memory that may be shared, not necessarily memory uniquely attributable to another process. Summing RES across processes can double-count shared pages; VIRT alone does not indicate physical RAM consumption.

Практика в реальном времени

Подготовьтесь к следующему собеседованию

Interview Boost учитывает вакансию, резюме и технологии и помогает сформулировать ответ прямо во время интервью.

Начать подготовку