LFCE Linux Performance Tuning Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Questions: 20 | Updated: Aug 16, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. What is context switching in the context of CPU performance?

Explanation

Context switching occurs when the CPU stops running one process and starts another. It saves the current process’s state, such as its registers and program counter, and restores the next process’s state so each can resume where it left off.

Submit
Please wait...
About This Quiz
LFCE Linux Performance Tuning Quiz - Quiz

This quiz evaluates your understanding of Linux performance tuning techniques and tools essential for system optimization. It covers CPU scheduling, memory management, I\/O optimization, and diagnostic tools used by Linux professionals. Master these concepts to effectively analyze and improve system performance in production environments.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. Page ____ occurs when the CPU references memory not currently in physical RAM.

Explanation

A page fault occurs when a program accesses a virtual memory page that is not currently in physical RAM. The operating system retrieves the page from secondary storage, places it in memory, updates the page table, and then allows the program to continue.

Submit

3. Which kernel parameter controls how aggressively the system swaps out memory?

Explanation

`vm.swappiness` controls the kernel’s tendency to move memory pages from RAM to swap, balancing swapping against reclaiming file-system cache. Higher values make the system more willing to swap; lower values favor keeping application memory in RAM. It influences this behavior but does not specify a fixed amount of memory to swap.

Submit

4. The ____ file in /proc shows memory allocation per process.

Explanation

The `/proc//status` file provides information about an individual process, including memory-related fields such as `VmSize` and `VmRSS`. These indicate its virtual and resident memory usage, respectively.

Submit

5. What is the purpose of CPU frequency scaling (cpufreq)?

Explanation

CPU frequency scaling dynamically adjusts the processor’s clock speed based on workload. Lowering the frequency when full performance isn’t needed reduces power use and heat, while increasing it when demand rises helps maintain performance.

Submit

6. Which tool provides detailed process-level I/O statistics?

Explanation

`pidstat` is part of the sysstat toolkit and can report I/O activity for individual processes, including their read and write rates. Its process-level view helps identify which tasks are generating disk I/O. By contrast, `blktrace` focuses on block-layer events, while `iotop` and `tiptop` provide different interactive or system-monitoring views.

Submit

7. Virtual memory ____ is the rate at which the system swaps memory pages to disk.

Explanation

Thrashing occurs when a system spends excessive time swapping memory pages between RAM and disk, often because it lacks sufficient physical memory. This frequent paging slows down program execution and reduces overall system performance.

Submit

8. What does the sar command monitor?

Explanation

The `sar` command monitors and reports system performance activity, including CPU usage, memory, disk I/O, and network statistics. It can display current measurements or summarize previously collected data, allowing administrators to review system behavior and trends over time.

Submit

9. Which of the following indicates the kernel is CPU-bound?

Explanation

High CPU utilization with a deep run queue means the processor is busy while additional runnable tasks are waiting for CPU time. This pattern indicates CPU-bound workload: demand for processing exceeds available CPU capacity.

Submit

10. The ____ command adjusts process priority after it has started.

Explanation

`renice` changes the nice value of a process that is already running, influencing how the operating system schedules it relative to other processes. A higher nice value generally lowers the process’s priority, while a lower value can increase it, subject to user permissions.

Submit

11. Which command displays real-time process CPU and memory usage with a dynamic, interactive interface?

Explanation

`top` provides a continuously updated, interactive view of running processes, including their CPU and memory usage. Unlike `ps`, which typically displays a one-time snapshot, `top` refreshes its information in real time and lets users inspect and manage processes.

Submit

12. Memory ____ occurs when the system uses disk space to extend RAM capacity.

Explanation

Swapping is a memory-management technique in which the operating system temporarily moves inactive data or processes from RAM to disk. This frees RAM for active tasks, while the disk space acts as a slower extension of available memory. When needed, the data can be brought back into RAM.

Submit

13. Which command traces system calls made by a process?

Explanation

`strace` is a Linux diagnostic utility that displays the system calls made by a process, including their arguments and return values. It can also show signals received by the process, helping diagnose errors or performance issues. Unlike `ltrace`, which focuses on library calls, `strace` reports interactions with the kernel.

Submit

14. What does nice priority in Linux range from?

Explanation

Linux nice values adjust a process’s scheduling priority: lower values favor the process, while higher values give it less priority. The valid range is **−20 to +19**, so the listed answer “−20 to 20” is slightly inaccurate.

Submit

15. The ____ file system parameter controls the maximum number of file descriptors per process.

Explanation

`ulimit` sets or displays resource limits for the current shell and its processes. The `-n` option controls the maximum number of open file descriptors a process may use, so adjusting this limit affects how many files and related resources it can open simultaneously.

Submit

16. Which tool reports I/O statistics and device utilization?

Explanation

`iostat` reports CPU and input/output statistics, including the activity and utilization of storage devices. It helps identify disk performance bottlenecks and monitor I/O load. `iotop` focuses on processes’ I/O, `netstat` shows network connections, and `strace` traces system calls.

Submit

17. What is the purpose of CPU affinity in Linux performance tuning?

Explanation

CPU affinity restricts a process or thread to run on selected CPU cores. This can improve performance by reducing migration between cores, preserving cache locality, and enabling more predictable CPU scheduling.

Submit

18. The ____ command shows memory usage broken down by process and can help identify memory leaks.

Explanation

The `pmap` command displays the memory map of a process identified by its PID, including memory regions and their sizes and permissions. Comparing its output over time can reveal unusually large or growing allocations and help investigate possible memory leaks. It reports memory usage but does not diagnose leaks automatically.

Submit

19. Which scheduling algorithm does the Linux kernel use by default?

Explanation

Linux uses the Completely Fair Scheduler (CFS) as its default process scheduler. CFS aims to distribute CPU time fairly among runnable tasks by tracking each task’s virtual runtime. It generally selects the task that has received the least CPU time relative to its weight, while priorities and scheduling policies can affect how tasks are treated.

Submit

20. What does the load average represent in Linux?

Explanation

Load average indicates the average number of processes that are runnable or waiting for CPU time over specific periods (typically 1, 5, and 15 minutes). It reflects system workload, not CPU utilization, memory usage, or disk throughput directly.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What is context switching in the context of CPU performance?
Page ____ occurs when the CPU references memory not currently in...
Which kernel parameter controls how aggressively the system swaps out...
The ____ file in /proc shows memory allocation per process.
What is the purpose of CPU frequency scaling (cpufreq)?
Which tool provides detailed process-level I/O statistics?
Virtual memory ____ is the rate at which the system swaps memory pages...
What does the sar command monitor?
Which of the following indicates the kernel is CPU-bound?
The ____ command adjusts process priority after it has started.
Which command displays real-time process CPU and memory usage with a...
Memory ____ occurs when the system uses disk space to extend RAM...
Which command traces system calls made by a process?
What does nice priority in Linux range from?
The ____ file system parameter controls the maximum number of file...
Which tool reports I/O statistics and device utilization?
What is the purpose of CPU affinity in Linux performance tuning?
The ____ command shows memory usage broken down by process and can...
Which scheduling algorithm does the Linux kernel use by default?
What does the load average represent in Linux?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!