ACE-P-ALE1-04 practice question 5 of 35
If the system is swapping, what can be done to alleviate the problem?
Full set: 100 questionsSystem swapping, also known as paging, occurs when the physical memory (RAM) is fully utilized, and the operating system moves inactive memory pages to a predefined space on the secondary storage (e.g., an SSD or hard drive) to free up RAM for active processes. This process is inherently slow because storage drives are orders of magnitude slower than RAM. If a system is swapping frequently (a condition known as "thrashing"), it is a clear indicator of insufficient physical memory for the current workload. Adding more memory (RAM) is the most direct and effective solution to alleviate this performance bottleneck, as it allows the system to hold more active processes in RAM, reducing or eliminating the need to access the slow swap space.
A. Add faster CPUs: A faster CPU processes instructions more quickly but does not increase the amount of available RAM. This will not solve the memory shortage causing the swapping.
B. Add more CPUs: Adding more CPUs increases parallel processing capability but does not address the lack of physical memory. It could potentially worsen swapping by enabling more concurrent, memory-intensive processes.
D. Add a larger hard drive: This only increases the size of the available swap space. It does not fix the underlying performance problem, which is the slow speed of swapping itself, not the lack of swap space. ---
1. Arista Networks Documentation: Arista's Extensible Operating System (EOS) is built on an unmodified Linux kernel. Standard Linux performance principles and tools are used for troubleshooting. Commands available via bash in the EOS CLI, such as top, free, and vmstat, are used to diagnose memory pressure and swap activity. When these tools indicate that swapping is the performance bottleneck, it signifies a lack of physical memory. (Reference: Arista EOS CLI and bash environment; standard Linux administration principles applicable to the ALE1 exam domain).
2. University Courseware: MIT OpenCourseWare, 6.828: Operating System Engineering, Fall 2012. Lecture 9: Virtual Memory. The course materials explain that "thrashing" occurs when the combined "working set" of running processes exceeds the available physical memory, leading to constant page faults and swapping. The solution described is to either reduce the memory demand or increase the amount of physical memory.
3. Academic Publication: Tanenbaum, A. S., & Bos, H. (2015). Modern Operating Systems (4th ed.). Pearson. In Chapter 3, Section 3.4.5, "Page Replacement Algorithms," the text discusses thrashing. It states, "If a process does not have enough frames, it will have a large number of page faults... The only real cure for thrashing is to get more memory" (p. 229). This foundational operating system principle is directly applicable to the Linux environment on Arista devices.
Keep practicing
Take the free ACE-P-ALE1-04 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other ACE-P-ALE1-04 practice questions
- Question 1When using the sudo command to run something as root, which password is required?
- Question 2Which utility can be used to remove sections or columns of each line of input?
- Question 3The ps –ef command is from which UNIX variant?
- Question 4In file globbing, which symbol matches any single character?
- Question 6When scripting in bash, it is recommended to always use which symbols around your variabl…
- Question 7Which utility can be used to merge sequentially corresponding lines of input streams into…
