How to stress test the memory on linux
stress tests CPU, memory, I/O, and HDD workloads on POSIX systems. This article shares commands to use 95% of memory to check for memory problems.
63 articles on this topic
stress tests CPU, memory, I/O, and HDD workloads on POSIX systems. This article shares commands to use 95% of memory to check for memory problems.
A Linux server was reported to be using over 90% of its memory, but its administrator could not identify a memory-heavy process. My initial check with free showed nothing unusual.
RHEL 7 changes its service manager from SysVinit to systemd, offering parallel operation, mount point handling, and cgroups support. These tables compare their commands.
On CentOS 5, yum may return a Segmentation fault error, for example: [root@ezylinux ~]# yum update bash. base | 1.1 kB 00:00…
A chroot Exec format error in Red Hat/CentOS rescue mode usually means the running environment and target commands use different architectures.
Zimbra supports only a few Linux distributions. One of the supported distributions is the very popular CentOS 6. This article explains how to install CentOS 6.
Linux can be shut down in several ways, usually immediately. Scheduling a shutdown and notifying other remote users gives them time to prepare.
If yum reports "Error: database disk image is malformed" while installing or updating packages, as shown below: [[email protected] ~]# yum install ruby Loaded plugin
A script to identify processes using SWAP on a server. It displays process details and the amount of swap space each process uses. #!/bin/bash # Get current swap usage for all
CentOS 6 ships with Ruby 1.8.7. Ruby Version Manager (RVM) lets applications use other Ruby versions without changing the main system.
whois queries domain information directly, helping administrators check domain ownership, expiry dates, or use the information in scripts.
There are several ways to check the Zimbra version: through a web browser, commands, or the installation history file. I have collected these methods for checking the Zimbra version…
On a Linux server, you can check how many physical CPU sockets it has without opening the machine. The command is dmidecode. Installing dmidecode…
Use zmcontrol to check the operating status of Zimbra. It can also start and stop Zimbra. To use it, you must first log in as the zimbra user…
Dell Unified Server Configurator can automatically update Dell server BIOS, network cards, iDRAC, RAID controllers, and other firmware when the server has internet access.
You can list the files in an RPM package, whether installed or not, in two ways: rpm and repoquery. Here is how to use both commands…
Coova chilli is hotspot software that I believe branched from Chilli hotspot, which appears to have stopped development. RPM files for RedHat Enterprise or CentOS can be hard to find.
UNetbootin creates a Linux Live USB on a flash drive from a downloaded ISO file or one it downloads from the Internet. It supports distributions including Ubuntu.
Dell OpenManage Server Administrator (OMSA) monitors hardware and alerts, helps troubleshoot hardware, configures RAID, and integrates with monitoring software.
Today I repeatedly used yum to install, update, and erase packages. It then hung for a long time during an uninstall. Wondering why it was taking so long, I checked its process…
A collection of RPM repositories useful when you need packages unavailable on the installation media or in the base repository for Red Hat Enterprise Linux and CentOS. RPMforge installation commands: RHEL6 / CentOS-6, i386…
The hostid command displays a Linux machine's ID. Linux generates a host ID at installation, and reinstalling generates a different one, which can affect software licenses tied to it.
Yum installs packages online on Red Hat Linux distributions, much like apt-get on Debian or Ubuntu, and handles package dependencies.
Red Hat provides several kernel packages with different capabilities. Installing an unsuitable kernel can prevent the system from recognizing all installed hardware.
Sometimes you need a package but only a package for another distribution is available. What can you do? This article explains converting RPM to DEB and DEB to RPM…
Slow boots of more than two hours or incorrect iostat output, such as 200% CPU utilization, can occur on x86 or x86_64 because of mismatched timers.
Use rpm or yum to find which package installed a file or command. yum requires repository access unless the required data is already cached.
Use `uname -r` to check the kernel version and compare it with the SUSE Linux Enterprise and Open Enterprise Server for Linux versions.
Linux uses RAM extensively to cache local and remote filesystem and disk data. The free command shows used, free, cached, and application memory.
Check Red Hat Enterprise Linux or CentOS versions by reading /etc/redhat-release or using uname to identify the release from its kernel version.
Yum, or Yellow dog Update, Modified, manages RPM package installation, removal, and updates, resolving dependencies from configured repositories.
The difference between CPU statistics from ps and top is that ps calculates CPU utilization as total CPU time divided by the task's running time, while top displays a percentage of overall CPU time…
yum normally hides packages listed under exclude in yum.conf, so yum update does not show which newer versions are available for those packages.
Daemons normally run as background processes and can be started with service commands or init scripts. Core dumps help debug programs and investigate errors.
Linux's cpuspeed power-saving technology has developed since Intel and AMD began adding DVS (dynamic voltage scaling) to CPUs, adjusting CPU voltage to reduce power use.
Core dumps are created when programs crash or access unauthorized memory, helping programmers debug problems. Linux provides settings to control their size, names, and location.
In Linux, choosing a CPU and kernel suited to the application's requirements helps the system run stably. x86_64 (AMD64, EM64T) processors are 64-bit processors…
How can you tell whether your system supports 64-bit, 32-bit, or 16-bit applications? This article explains Long mode and Legacy mode.
You can free memory on demand with a simple command that clears the Linux pagecache and slabcache. Write 1 to free pagecache, 2 to free…
In Linux, you can increase or decrease I/O access priority per process with ionice, which displays and changes the I/O scheduling class and priority of a process…
The virtual console normally displays 80x24 lines. For a higher resolution, edit /boot/grub/grub.conf and add a vga setting to the kernel line.
On newer Linux systems, dmidecode reports the maximum memory capacity supported by the system BIOS.
On Red Hat systems, use rpm, yum, or up2date to find which RPM package contains a particular file.
device.map maps hard disk devices to GRUB device names and is created during operating system installation. Recreate it if it is missing.
Many people wonder how much swap to create during installation. The usual rule is at least twice the RAM, but if the system has a lot of RAM, is twice as much really necessary…
Compiling a Linux kernel may sound difficult, but it takes only a few steps after preparing the compiler, libraries, and other development tools.
Many people know Hyperthreading (HT), also called Symmetric Multi-Threading (SMT), a feature of Intel x86 CPUs found in older Pentium 4 and some Xeon processors…
A Red Hat Enterprise Linux installation may hang on first boot because of an Advanced Power Management (APM) issue. Try disabling APM with apm=off.
Commands to shut down Linux: #shutdown -h now #init 0 #halt #poweroff. Commands to reboot: #reboot #init 6 #shutdown -r now.
After changing the diskdump configuration and restarting its service, errors may appear in /var/log/messages: diskdump: diskdumpctl: failed to add /dev/hdb! diskdump: a
Resolution: The Red Hat Enterprise Linux 5 Installation Number is a 16-character hexadecimal text string used during the installation process. The installation number enables a user to install the ful
Warning: check that your hardware supports CPU hot swapping before trying these commands; otherwise the hardware may be damaged.
On Red Hat Linux clones, print queue settings can be exported and copied to another print server for use or load sharing.
RedHat 5 and RedHat 5.1 may hang at the final stage of reboot or shutdown because of a cpufreq bug that causes a deadlock when its module is unloaded.
On RedHat V4.5, the largesmp kernel panics during boot on systems with more than eight CPUs and NUMA disabled. RedHat says the bug will be fixed in the next update.
Red Hat Enterprise Linux 4 update 3 and later provides a largesmp kernel for systems with many CPUs, available for x86_64, ia64, and ppc64.
Linux can be installed in several ways, including CD-ROM, hard disk, network, and Red Hat Network. This article focuses on installation from CD-ROM.
In Linux, you can disable the beep if you do not want it. The sound comes from the pcspkr module. Use: # rmmod pcspkr. To disable it every time the machine starts…
To find how many sockets a process has open on Linux, first identify its PID using $ ps -aef | grep, then count its sockets.
To see the kernel's boot parameters, use # cat /proc/cmdline. ro root=LABEL=/ rhgb quiet
A hard disk generally stores the system bootloader's binary code in the first 512 sectors, or 512 bytes. LILO or GRUB embeds itself in the master boot record…
There are several ways to change a Red Hat or Red Hat clone hostname, including hostname without restarting the network service.