<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Arch Linux Archives - MASSIVE News</title>
	<atom:link href="https://massive.news/tag/arch-linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://massive.news/tag/arch-linux/</link>
	<description>Progressive Mix of World News and Propaganda</description>
	<lastBuildDate>Thu, 13 Mar 2025 01:16:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://massive.news/wp-content/uploads/2024/08/m-150x150.jpg</url>
	<title>Arch Linux Archives - MASSIVE News</title>
	<link>https://massive.news/tag/arch-linux/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>MangoHud – Monitor FPS, CPU &#038; GPU Load in Linux Games</title>
		<link>https://massive.news/mangohud-monitor-fps-cpu-gpu-load-in-linux-games/</link>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Wed, 12 Mar 2025 05:31:07 +0000</pubDate>
				<category><![CDATA[World News]]></category>
		<category><![CDATA[AlmaLinux]]></category>
		<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Features]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Gaming]]></category>
		<category><![CDATA[launch]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[WHO]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://massive.news/mangohud-monitor-fps-cpu-gpu-load-in-linux-games/</guid>

					<description><![CDATA[<p>MangoHud is a powerful and lightweight tool designed for gamers, developers, and anyone who wants to...</p>
<p>The post <a href="https://massive.news/mangohud-monitor-fps-cpu-gpu-load-in-linux-games/">MangoHud – Monitor FPS, CPU &amp; GPU Load in Linux Games</a> appeared first on <a href="https://massive.news">MASSIVE News</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>MangoHud</strong> is a powerful and lightweight tool designed for gamers, developers, and anyone who wants to monitor their system’s performance in real-time.</p>
<p>It works as an overlay for <strong>Vulkan</strong> and <strong>OpenGL</strong> applications, displaying important information like <strong>FPS</strong> (frames per second), <strong>CPU</strong> and <strong>GPU</strong> usage, temperatures, and more.</p>
<figure id="attachment_59894" aria-describedby="caption-attachment-59894" class="wp-caption aligncenter"><img fetchpriority="high" decoding="async" class="size-full wp-image-59894" src="https://massive.news/wp-content/uploads/2025/03/mangohud-monitor-fps-cpu-gpu-load-in-linux-games.gif" alt="MangoHud - Monitor Gaming Performance" width="310" height="214"><figcaption id="caption-attachment-59894" class="wp-caption-text">MangoHud – Monitor Gaming Performance</figcaption></figure>
<p>In this article, we’ll explore what <strong>MangoHud</strong> is, how it works, and how you can use it to monitor your system’s performance. We’ll also provide step-by-step instructions for installing and configuring <strong>MangoHud</strong> on your system.</p>
<h2>What is MangoHud?</h2>
<p><strong>MangoHud</strong> is an open-source project available on <strong>GitHub</strong>, which was created to provide a simple and customizable way to monitor system performance while running Vulkan and OpenGL applications. The overlay is designed to be lightweight, meaning it doesn’t use much of your system’s resources, so it won’t interfere with your gaming or other tasks.</p>
<p><strong>Key Features of MangoHud</strong>:</p>
<ul>
<li><strong>FPS Counter</strong> – Displays the current frames per second, which is useful for understanding how smoothly a game or application is running.</li>
<li><strong>CPU and GPU Usage</strong> – Shows how much of your processor and graphics card is being used.</li>
<li><strong>Temperature Monitoring</strong> – Tracks the temperature of your CPU and GPU to help you avoid overheating.</li>
<li><strong>Frame Timing</strong> – Provides information about the time it takes to render each frame.</li>
<li><strong>Customization</strong> – Allows you to change the position, size, and color of the overlay to suit your preferences.</li>
<li><strong>Support for Multiple APIs</strong> – Works with both Vulkan and OpenGL applications.</li>
</ul>
<h2>How to Install MangoHud on Linux</h2>
<p><center></p>
<div align="center" id="tecmint_incontent"></div>
<p></center></p>
<p><strong>MangoHud</strong> is available in the official repositories of many Linux distributions and can be installed using the default package managers.</p>
<pre>sudo apt install mangohud         [On <strong>Debian, Ubuntu and Mint</strong>]
sudo dnf install mangohud         [On <strong>RHEL/CentOS/Fedora</strong> and <strong>Rocky/AlmaLinux</strong>]
sudo pacman -S mangohud           [On <strong>Arch Linux</strong>]
sudo zypper install mangohud      [On <strong>OpenSUSE</strong>]    
</pre>
<p>After installation, you can verify that MangoHud is installed using:</p>
<pre>mangohud --version
</pre>
<h2>How to Use MangoHud in Linux</h2>
<p>Once installed, <strong>MangoHud</strong> can be enabled for games and applications with simple commands.</p>
<h3>Enable MangoHud for OpenGL Applications</h3>
<p>To run an <strong>OpenGL</strong> game or application with <strong>MangoHud</strong>, use:</p>
<pre>mangohud application_name
</pre>
<h3>Enable MangoHud for Vulkan Applications</h3>
<p>For Vulkan-based applications, simply prepend mangohud to the command:</p>
<pre>mangohud vulkan_application
</pre>
<p>The overlay will appear in the top-left corner by default, showing FPS, CPU/GPU usage, and other metrics.</p>
<h3>Enable MangoHud for Steam Games</h3>
<p>To use MangoHud with Steam games, go to <strong>Library</strong>, right-click on a game, select <strong>Properties,</strong> and in the <strong>Launch Options</strong>, add.</p>
<pre>MANGOHUD=1 %command%
</pre>
<p>Now, <strong>MangoHud</strong> will appear when launching the game.</p>
<h3>Enable MangoHud for Proton Games</h3>
<p>For Windows games running through <strong>Proton</strong>, use the following command in Steam’s launch options:</p>
<pre>MANGOHUD=1 PROTON_ENABLE_NVAPI=1 PROTON_NO_ESYNC=1 %command%
</pre>
<h2>Configuring MangoHud in Linux</h2>
<p>MangoHud allows users to customize the overlay using a configuration file.</p>
<pre>~/.config/MangoHud/MangoHud.conf
</pre>
<p>You can modify the config file to change the display settings.</p>
<pre>fps_limit=60
no_display=0
position=top-left
background_alpha=0.4
font_size=24
cpu_temp=1
gpu_temp=1
ram=1
</pre>
<p>You can also change settings while running a game using the following keyboard shortcuts:</p>
<ul>
<li><code>Shift + F12</code> → Toggle MangoHud on/off.</li>
<li><code>Shift + F11</code> → Toggle logging mode.</li>
</ul>
<h5>Conclusion</h5>
<p>MangoHud is an excellent tool for Linux users who want to monitor system performance while running games or graphical applications. It provides real-time insights into FPS, CPU/GPU usage, temperatures, and memory consumption, helping users optimize their gaming experience.</p>
<p>The post <a href="https://massive.news/mangohud-monitor-fps-cpu-gpu-load-in-linux-games/">MangoHud – Monitor FPS, CPU &amp; GPU Load in Linux Games</a> appeared first on <a href="https://massive.news">MASSIVE News</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Set Up FreeDOS on Linux Using Qemu</title>
		<link>https://massive.news/how-to-set-up-freedos-on-linux-using-qemu/</link>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Thu, 27 Feb 2025 06:19:28 +0000</pubDate>
				<category><![CDATA[World News]]></category>
		<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[copyright]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Features]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Gaming]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://massive.news/how-to-set-up-freedos-on-linux-using-qemu/</guid>

					<description><![CDATA[<p>FreeDOS is a free and open-source DOS-compatible operating system that allows you to run legacy DOS...</p>
<p>The post <a href="https://massive.news/how-to-set-up-freedos-on-linux-using-qemu/">How to Set Up FreeDOS on Linux Using Qemu</a> appeared first on <a href="https://massive.news">MASSIVE News</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>FreeDOS</strong> is a free and open-source DOS-compatible operating system that allows you to run legacy DOS software and games on modern hardware. While Linux is a powerful and versatile operating system, there are times when you might need to run DOS-based applications for compatibility or nostalgia.</p>
<p>In this guide, I’ll walk you through the steps to set up <strong>FreeDOS</strong> on a <strong>Linux</strong> system using Qemu, a powerful open-source emulator.</p>
<h2>What is Qemu?</h2>
<p><strong>Qemu</strong> is a generic and open source machine emulator and virtualizer that can emulate a full computer system, including the processor, memory, and peripherals, allowing you to run operating systems designed for different architectures.</p>
<p><strong>Qemu</strong> is lightweight, fast, and perfect for running <strong>FreeDOS</strong> on Linux.</p>
<h2>Why Use FreeDOS?</h2>
<p><strong>FreeDOS</strong> is a modern implementation of <strong>DOS</strong> that is fully compatible with classic DOS applications and games.</p>
<p><center></p>
<div align="center" id="tecmint_incontent"></div>
<p></center></p>
<p>It’s ideal for:</p>
<ul>
<li>Running legacy software.</li>
<li>Learning about DOS and its commands.</li>
<li>Testing old programs in a controlled environment.</li>
<li>Enjoying retro gaming.</li>
</ul>
<h2>Step 1: Install Qemu on Linux</h2>
<p>Qemu is available in most Linux distribution repositories and to install it, open your terminal and run the following commands based on your distribution:</p>
<p><strong>For Ubuntu/Debian</strong>:</p>
<pre>sudo apt update  
sudo apt install qemu qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager  
</pre>
<p>For Fedora:</p>
<pre>sudo dnf install qemu qemu-kvm virt-manager libvirt libvirt-python libvirt-client virt-install virt-viewer  
</pre>
<p><strong>For Arch Linux</strong>:</p>
<pre>sudo pacman -S qemu qemu-arch-extra virt-manager libvirt  
</pre>
<p>Once installed, verify the installation by running:</p>
<pre>qemu-system-x86_64 --version  
</pre>
<p><strong>Sample Output</strong>:</p>
<pre>QEMU emulator version 6.2.0 (Debian 1:6.2+dfsg-2ubuntu6.24)
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
</pre>
<h2>Step 2: Install FreeDOS Using Qemu in Linux</h2>
<p>First, visit the official FreeDOS website and download the latest ISO image (<strong>FD14-LiveCD.zip</strong>), and save the ISO file to a directory, such as <code>~/Downloads</code>.</p>
<p>Next, you need to create a 2GB virtual disk in <strong>Qcow2</strong> format to install <strong>FreeDOS</strong>, which is efficient and supports features like snapshots.</p>
<pre>qemu-img create -f qcow2 freedos.img 2G
</pre>
<p>Now, extract the <strong>FD14-LiveCD.zip</strong> and boot the <strong>FD14LIVE.iso</strong> to install it on the virtual disk by running the following commands.</p>
<pre>unzip FD14-LiveCD.zip
qemu-system-x86_64 -hda freedos.img -cdrom FD14LIVE.iso -boot d -m 512  
</pre>
<figure id="attachment_59803" aria-describedby="caption-attachment-59803" class="wp-caption aligncenter"><img fetchpriority="high" decoding="async" class="size-full wp-image-59803" src="https://massive.news/wp-content/uploads/2025/02/how-to-set-up-freedos-on-linux-using-qemu.png" alt="Boot FreeDOS" width="724" height="469"><figcaption id="caption-attachment-59803" class="wp-caption-text">Boot FreeDOS</figcaption></figure>
<p>Once the virtual machine boots, select “<strong>Install to Harddisk</strong>” and press <strong>Enter</strong>.</p>
<figure id="attachment_59804" aria-describedby="caption-attachment-59804" class="wp-caption aligncenter"><img decoding="async" class="size-full wp-image-59804" src="https://massive.news/wp-content/uploads/2025/02/how-to-set-up-freedos-on-linux-using-qemu-1.png" alt="Install FreeDOS to Hard Disk" width="724" height="469"><figcaption id="caption-attachment-59804" class="wp-caption-text">Install FreeDOS to Hard Disk</figcaption></figure>
<figure id="attachment_59814" aria-describedby="caption-attachment-59814" class="wp-caption aligncenter"><img decoding="async" class="size-full wp-image-59814" src="https://massive.news/wp-content/uploads/2025/02/how-to-set-up-freedos-on-linux-using-qemu-2.png" alt="FreeDOS Language" width="724" height="469"><figcaption id="caption-attachment-59814" class="wp-caption-text">FreeDOS Language</figcaption></figure>
<figure id="attachment_59813" aria-describedby="caption-attachment-59813" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="size-full wp-image-59813" src="https://massive.news/wp-content/uploads/2025/02/how-to-set-up-freedos-on-linux-using-qemu-3.png" alt="FreeDOS Installation Option" width="724" height="469"><figcaption id="caption-attachment-59813" class="wp-caption-text">FreeDOS Installation Option</figcaption></figure>
<figure id="attachment_59812" aria-describedby="caption-attachment-59812" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="size-full wp-image-59812" src="https://massive.news/wp-content/uploads/2025/02/how-to-set-up-freedos-on-linux-using-qemu-4.png" alt="FreeDOS Partition Drive" width="724" height="469"><figcaption id="caption-attachment-59812" class="wp-caption-text">FreeDOS Partition Drive</figcaption></figure>
<figure id="attachment_59811" aria-describedby="caption-attachment-59811" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="size-full wp-image-59811" src="https://massive.news/wp-content/uploads/2025/02/how-to-set-up-freedos-on-linux-using-qemu-5.png" alt="FreeDOS Reboot" width="724" height="469"><figcaption id="caption-attachment-59811" class="wp-caption-text">FreeDOS Reboot</figcaption></figure>
<p>Again choose the “<strong>Install to Harddisk</strong>” option, which will start formatting the drive.</p>
<figure id="attachment_59810" aria-describedby="caption-attachment-59810" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="size-full wp-image-59810" src="https://massive.news/wp-content/uploads/2025/02/how-to-set-up-freedos-on-linux-using-qemu-6.png" alt="FreeDOS Drive Formatting" width="724" height="469"><figcaption id="caption-attachment-59810" class="wp-caption-text">FreeDOS Drive Formatting</figcaption></figure>
<figure id="attachment_59809" aria-describedby="caption-attachment-59809" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="size-full wp-image-59809" src="https://massive.news/wp-content/uploads/2025/02/how-to-set-up-freedos-on-linux-using-qemu-7.png" alt="FreeDOS Keyboard" width="724" height="469"><figcaption id="caption-attachment-59809" class="wp-caption-text">FreeDOS Keyboard</figcaption></figure>
<figure id="attachment_59808" aria-describedby="caption-attachment-59808" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="size-full wp-image-59808" src="https://massive.news/wp-content/uploads/2025/02/how-to-set-up-freedos-on-linux-using-qemu-8.png" alt="FreeDOS Installation Type" width="724" height="469"><figcaption id="caption-attachment-59808" class="wp-caption-text">FreeDOS Installation Type</figcaption></figure>
<figure id="attachment_59807" aria-describedby="caption-attachment-59807" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="size-full wp-image-59807" src="https://massive.news/wp-content/uploads/2025/02/how-to-set-up-freedos-on-linux-using-qemu-9.png" alt="Install FreeDOS OS" width="724" height="469"><figcaption id="caption-attachment-59807" class="wp-caption-text">Install FreeDOS OS</figcaption></figure>
<figure id="attachment_59818" aria-describedby="caption-attachment-59818" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="size-full wp-image-59818" src="https://massive.news/wp-content/uploads/2025/02/how-to-set-up-freedos-on-linux-using-qemu-10.png" alt="Installing FreeDOS Software" width="724" height="469"><figcaption id="caption-attachment-59818" class="wp-caption-text">Installing FreeDOS Software</figcaption></figure>
<p>After installation, you can boot <strong>FreeDOS</strong> directly from the virtual disk without the ISO.</p>
<pre>qemu-system-i386 -m 64 -hda freedos.img -boot c
</pre>
<figure id="attachment_59819" aria-describedby="caption-attachment-59819" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="size-full wp-image-59819" src="https://massive.news/wp-content/uploads/2025/02/how-to-set-up-freedos-on-linux-using-qemu-11.png" alt="FreeDOS Running" width="724" height="469"><figcaption id="caption-attachment-59819" class="wp-caption-text">FreeDOS Running</figcaption></figure>
<h2>Run DOS Programs on FreeDOS in Linux</h2>
<p>With <strong>FreeDOS</strong> up and running, you can now install and run DOS applications and games.</p>
<p>For example, to run a classic game like <strong>Doom</strong>:</p>
<ul>
<li>Download the Doom game files (e.g., <strong>doom1.zip</strong>).</li>
<li>Extract the files to a directory on your Linux system.</li>
<li>Mount the directory in Qemu using the <code>-hdb</code> option:</li>
</ul>
<pre>qemu-system-x86_64 -hda freedos.img -hdb ~/Games/Doom -m 512  
</pre>
<p>Inside FreeDOS, navigate to the directory and run:</p>
<pre>C:&gt; doom.exe
</pre>
<h5>Conclusion</h5>
<p>By following this guide, you have successfully set up <strong>FreeDOS</strong> on <strong>Linux</strong> using <strong>QEMU</strong>. You can now run old DOS programs, play classic games, or experiment with DOS applications without needing dedicated hardware.</p>
<p>The post <a href="https://massive.news/how-to-set-up-freedos-on-linux-using-qemu/">How to Set Up FreeDOS on Linux Using Qemu</a> appeared first on <a href="https://massive.news">MASSIVE News</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Reduce RAM &#038; CPU Usage on Linux</title>
		<link>https://massive.news/how-to-reduce-ram-cpu-usage-on-linux/</link>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Thu, 27 Feb 2025 04:00:08 +0000</pubDate>
				<category><![CDATA[World News]]></category>
		<category><![CDATA[AlmaLinux]]></category>
		<category><![CDATA[alpine linux]]></category>
		<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[extensions]]></category>
		<category><![CDATA[Features]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[Monitoring Tools]]></category>
		<category><![CDATA[Space]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://massive.news/how-to-reduce-ram-cpu-usage-on-linux/</guid>

					<description><![CDATA[<p>Linux is a powerful and efficient operating system, but high RAM and CPU usage can degrade...</p>
<p>The post <a href="https://massive.news/how-to-reduce-ram-cpu-usage-on-linux/">How to Reduce RAM &amp; CPU Usage on Linux</a> appeared first on <a href="https://massive.news">MASSIVE News</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Linux is a powerful and efficient operating system, but high RAM and CPU usage can degrade performance, slow down applications, and even cause system crashes when you’re running a server, workstation, or embedded system, and optimizing resource usage is essential for smooth operation.</p>
<p>In this guide, we’ll explore practical methods to reduce RAM and CPU usage on Linux. We’ll cover monitoring tools, process management, kernel tweaks, and system optimization techniques to keep your system running efficiently.</p>
<h2>1. Identify Resource Hungry Processes</h2>
<p>The first step in reducing RAM and CPU usage is identifying which processes are consuming the most resources by utilizing several command-line tools:</p>
<h3>a. Using top Command</h3>
<p>The top command provides a real-time view of system processes, including CPU and memory usage.</p>
<pre>top
</pre>
<ul>
<li>Press <code>P</code> to sort processes by CPU usage.</li>
<li>Press <code>M</code> to sort processes by memory usage.</li>
<li>Look for processes consuming excessive resources and note their Process ID (<strong>PID</strong>).</li>
</ul>
<figure id="attachment_59823" aria-describedby="caption-attachment-59823" class="wp-caption aligncenter"><img fetchpriority="high" decoding="async" class="size-full wp-image-59823" src="https://massive.news/wp-content/uploads/2025/03/how-to-reduce-ram-cpu-usage-on-linux.png" alt="Real-Time System Process Monitoring" width="951" height="696"><figcaption id="caption-attachment-59823" class="wp-caption-text">Real-Time System Process Monitoring</figcaption></figure>
<h3>b. Using htop Command</h3>
<p>htop is an interactive process viewer that provides a more user-friendly interface than <code>top</code>.</p>
<p><center></p>
<div align="center" id="tecmint_incontent"></div>
<p></center></p>
<p>To install <strong>htop</strong> on Linux, use the following appropriate command for your specific Linux distribution.</p>
<pre>sudo apt install htop         [On <strong>Debian, Ubuntu and Mint</strong>]
sudo dnf install htop         [On <strong>RHEL/CentOS/Fedora</strong> and <strong>Rocky/AlmaLinux</strong>]
sudo emerge -a sys-apps/htop  [On <strong>Gentoo Linux</strong>]
sudo apk add htop             [On <strong>Alpine Linux</strong>]
sudo pacman -S htop           [On <strong>Arch Linux</strong>]
sudo zypper install htop      [On <strong>OpenSUSE</strong>]    
sudo pkg install htop         [On FreeBSD]
</pre>
<p>Run <code>htop</code> to view and manage processes easily.</p>
<pre>htop
</pre>
<ul>
<li>Press <code>F6</code> to sort processes by CPU or memory usage.</li>
<li>Press <code>F9</code> to kill a selected process.</li>
</ul>
<figure id="attachment_59824" aria-describedby="caption-attachment-59824" class="wp-caption aligncenter"><img decoding="async" class="size-full wp-image-59824" src="https://massive.news/wp-content/uploads/2025/03/how-to-reduce-ram-cpu-usage-on-linux-1.png" alt="htop - Interactive Process Viewer" width="951" height="696"><figcaption id="caption-attachment-59824" class="wp-caption-text">htop – Interactive Process Viewer</figcaption></figure>
<h3>c. Using ps Command</h3>
<p>The ps command can be used to list processes and their resource usage.</p>
<pre>ps aux --sort=-%mem | head  # Top memory-consuming processes
ps aux --sort=-%cpu | head  # Top CPU-consuming processes
</pre>
<figure id="attachment_59825" aria-describedby="caption-attachment-59825" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="size-full wp-image-59825" src="https://massive.news/wp-content/uploads/2025/03/how-to-reduce-ram-cpu-usage-on-linux-2.png" alt="Check Memory Consuming Processes" width="839" height="97"><figcaption id="caption-attachment-59825" class="wp-caption-text">Check Memory Consuming Processes</figcaption></figure>
<h2>2. Kill Unnecessary Processes</h2>
<p>Once you’ve identified resource-hogging processes, you can terminate them to free up resources using the kill command followed by the <strong>PID</strong>.</p>
<pre>kill PID
</pre>
<p>If the process doesn’t terminate, use the <code>-9</code> flag to force-kill it.</p>
<pre>kill -9 PID
</pre>
<p>Alternatively, use the pkill command to kill processes by name.</p>
<pre>pkill process_name
</pre>
<h2>3. Optimize Startup Applications</h2>
<p>Many applications and services start automatically at boot, consuming valuable system resources.</p>
<p>To manage startup applications:</p>
<h3>a. Using systemctl Command</h3>
<p>List all enabled services using the systemctl command.</p>
<pre>systemctl list-unit-files --type=service | grep enabled
</pre>
<p>Disable unnecessary services.</p>
<pre>sudo systemctl disable service_name
</pre>
<figure id="attachment_59827" aria-describedby="caption-attachment-59827" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="size-full wp-image-59827" src="https://massive.news/wp-content/uploads/2025/03/how-to-reduce-ram-cpu-usage-on-linux-3.png" alt="List Enabled Services" width="951" height="696"><figcaption id="caption-attachment-59827" class="wp-caption-text">List Enabled Services</figcaption></figure>
<h3>b. Using GUI Tools</h3>
<p>If you’re using a desktop environment like <strong>GNOME</strong> or <strong>KDE</strong>, use the built-in startup applications manager to disable unnecessary programs.</p>
<h2>4. Reduce Swappiness (Optimize Swap Usage)</h2>
<p>Swappiness controls how often the system uses swap space instead of <strong>RAM</strong>. A high swappiness value can lead to excessive swapping, slowing down your system.</p>
<p>To check the current swappiness value:</p>
<pre>cat /proc/sys/vm/swappiness
</pre>
<p>The default value is usually <code>60</code>, but to reduce swappiness you need to edit the <code>/etc/sysctl.conf</code> file.</p>
<pre>sudo nano /etc/sysctl.conf
</pre>
<p>Add or modify the following line.</p>
<pre>vm.swappiness=10
</pre>
<p>Save the file and apply the changes.</p>
<pre>sudo sysctl -p
</pre>
<h2>5. Use Lightweight Desktop Alternatives</h2>
<p>Heavy desktop environments and applications can strain system resources, so consider switching to lightweight alternatives:</p>
<h3>a. Desktop Environments</h3>
<p>Replace <strong>GNOME</strong> or <strong>KDE</strong> with lighter options like <strong>XFCE</strong>, <strong>LXDE</strong>, or <strong>MATE</strong>.</p>
<h3>b. Applications</h3>
<p>Use lightweight applications such as:</p>
<ul>
<li><strong>Text Editor</strong>: Replace <strong>LibreOffice</strong> with <strong>AbiWord</strong> or <strong>Mousepad</strong>.</li>
<li><strong>Web Browser</strong>: Use <strong>Firefox</strong> with fewer extensions or switch to lightweight browsers like <strong>Midori</strong>.</li>
<li><strong>File Manager</strong>: Replace <strong>Nautilus</strong> with <strong>Thunar</strong> or <strong>PCManFM</strong>.</li>
</ul>
<h2>6. Clear Cache and Buffers</h2>
<p>Linux uses RAM to cache files and improve performance. However, you can manually clear the cache if needed:</p>
<pre>sudo sync; sudo sysctl -w vm.drop_caches=3
</pre>
<p>This command clears pagecache, dentries, and inodes. Use it cautiously, as it may temporarily slow down file access.</p>
<h2>7. Optimize Kernel Parameters</h2>
<p>To tune or optimize kernel parameters, you need to edit <code>/etc/sysctl.conf</code> file and add the following or adjust parameters to improve system performance.</p>
<pre>vm.dirty_background_ratio=5
vm.dirty_ratio=10
vm.min_free_kbytes=65536
kernel.sched_autogroup_enabled=0
</pre>
<p>These settings control how often dirty data is written to disk, reducing RAM usage.</p>
<h2>8. Reduce Memory Usage with ZRAM</h2>
<p>Zram and Zswap are compressed memory technologies that can reduce RAM usage.</p>
<pre>sudo apt install zram-config 
sudo systemctl start zram-config
</pre>
<p>Once installed, you need to edit the GRUB configuration file (<code>/etc/default/grub</code>) and add:</p>
<pre>GRUB_CMDLINE_LINUX_DEFAULT="zswap.enabled=1"
</pre>
<p>Update GRUB and reboot:</p>
<pre>sudo update-grub
sudo reboot
</pre>
<h2>9. Limit CPU Usage of Processes</h2>
<p>If a process is hogging the CPU, limit its usage using cpulimit.</p>
<pre>sudo apt install cpulimit  # Debian/Ubuntu  
sudo yum install cpulimit  # RHEL/CentOS  
</pre>
<p>Limit a process (e.g., <strong>firefox</strong>) to 30% CPU usage.</p>
<pre>sudo cpulimit -e firefox -l 30
</pre>
<p>To permanently limit a process, use systemd.</p>
<pre>sudo systemctl set-property &lt;service_name&gt; CPUQuota=30%
</pre>
<h2>10. Regularly Update Your System</h2>
<p>Keeping your system updated ensures you have the latest performance improvements and bug fixes.</p>
<pre>sudo apt update &amp;&amp; sudo apt upgrade  # For Debian/Ubuntu
sudo yum update  # For CentOS/RHEL
</pre>
<h2>Troubleshooting Tips</h2>
<ul>
<li>If a process doesn’t terminate with <code>kill</code>, use <code>kill -9 PID</code> to force-kill it.</li>
<li>If <code>zram</code> or <code>zswap</code> doesn’t work, ensure your kernel supports these features.</li>
<li>If system performance doesn’t improve, consider upgrading your hardware (e.g., adding more RAM or switching to an SSD).</li>
</ul>
<h5>Conclusion</h5>
<p>Optimizing RAM and CPU usage on Linux is a blend of monitoring, tweaking, and occasionally upgrading hardware. By identifying resource-hogging processes, adjusting system settings, and opting for lightweight alternatives, you can breathe new life into your system.</p>
<p>Have you tried these optimization techniques? Share your experience in the comments below or visit <strong>Tecmint.com</strong> for more Linux guides and tutorials.</p>
<p>The post <a href="https://massive.news/how-to-reduce-ram-cpu-usage-on-linux/">How to Reduce RAM &amp; CPU Usage on Linux</a> appeared first on <a href="https://massive.news">MASSIVE News</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
