Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (9.32 KB, 2 trang )
1 - 2 IT Essentials II v2.0 - Lab 7.2.6 Copyright 2002, Cisco Systems, Inc.
Lab 7.2.6: Adding Swap File Space in a Linux System
Estimated Time: 20 minutes
Objective
To assess and add swap space in a Linux Red Hat operating system.
Equipment
• A computer with Linux Red Hat 7.X installed
Scenario
The system administrator of a large company notices that one of the Linux Apache Web
servers for the internal company Web site has been running slowly, and most of its
resources have been used up. Most of the IT budget for the year has been spent.
Therefore, adding more RAM is not an option. The administrator decides to add more
swap space to the server instead.
Procedures
Step 1: Assessing swap usage
In order to determine how much swap space to add, first look at the size of some files on
the system. Determine how much memory is being used and how much is left on the
system.
The free command in Linux can be used to check the system memory. Type free –m
–t at the shell prompt.
How much physical memory is available? How much physical memory is being used?
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
2 - 2 IT Essentials II v2.0 - Lab 7.2.6 Copyright 2002, Cisco Systems, Inc.
Step 2: Adding a swap file