Showing posts with label speedup. Show all posts
Showing posts with label speedup. Show all posts

Wednesday, December 14, 2011

Fedora Utils

Fedora Utils lets you install codecs and additional software, fix problems, tweak and cleanup your system, view system information and much more with just few clicks. This littile tool allows you to add additional repositories and install application that are not available in the main fedora repository. It adds the RPM Fusion repository which contains
gstreamer-plugins-bad-free
gstreamer-ffmpeg
gstreamer-plugins-bad
gstreamer-plugins-ugly
Which should make totem play audio and video for any file format in Totem -- the default media player shipped with Fedora.

Can be installed by running the following command in terminal.
su -c "yum localinstall http://fedorautils.sourceforge.net/fedorautils-latest.noarch.rpm"


Fedora Utils Features

  • Add current user to sudoers
  • Enable autologin for current user
  • Set yum to keep cache
  • Install yum tidy-cache plugin
  • Add repositories - RPMFusion, Google, Adobe, Chromium, Skype
  • Enable touchpad clicks
  • Install multimedia codecs
  • Install Adobe Flash
  • Install Java Runtime Environment
  • Install wine with gecko
  • Install Google Talk plugin
  • Add colors and fortune messages to Terminal
  • Set SELinux in permissive mode
  • Install Microsoft fonts
  • Install Jockey driver installer (From Parsidora repo)
  • Install essential software
  • Fixes - Fix font smoothing, Fix bad theme in root apps, Fix rpmdb error, Fix gnome keyring, Fix picasa not starting, Fix anaconda causing revisor not to start, Fix MPlayer driver error, Fix ntfs-config not starting
  • Install Gnome Shell Extensions - GPaste, Media Player, Weather, Alternate Status Menu, Dock Extension, Places Menu, User Theme, Window Navigator, Zeitgeist
  • Install Software - Google Chrome, Picasa, Google Earth, HandBrake, Skype, WinFF, Unico Theme Engine
  • Clean up system
  • Optimize boot by turning off unnecessary services
  • Show system info

Friday, October 7, 2011

Enable Zram in Fedora 15


While trying to optimize the elementary OS performance, Sergey Davidoff stumbled upon a project called compcache that creates a RAM based block device which acts as a swap disk, but is compressed and stored in memory instead of swap disk (which is slow), allowing very fast I/O and increasing the amount of memory available before the system starts swapping to disk. compcache was later re-written under the name zRam and is now integrated into the Linux kernel.


I decided to give it a try, and the result on my desktop with a quad-core CPU and 2Gb of RAM was fantastic: instead of freezing after running out of RAM, the system worked like nothing happened. I didn't notice any difference at all. It looked just like adding more RAM! Surprisingly, I got almost the same results on a 6-year-old laptop with Pentium M and 1Gb of RAM! So, I've improved the script to automatically adapt to the amount of memory in the system and automatically scale across several CPUs or CPU cores, packaged it in .deb and uploaded to PPA.

- Sergey Davidoff


Sergey also mentions that the only thing that prevents this from being enabled by default in elementary OS Luna for now is the existence of Atom netbooks with fast SSDs for which he doesn't know if this would be useful or not.


This is especially useful for netbooks, old computers (or computers that don't have too much RAM), virtualization or embedded devices but of course, you can use it on any computer.


What follows are instructions on how to enable zram for Fedora. You need Linux kernel version2.6.37.1 or better with zram compiled as a module.

Run the following command to see if you have zram available as a module in your kernel.
modprobe zram 

If the above command runs without errors, you have zram available as a module in your kernel. If not, you need to rebuild your kernel to have zram compiled as a module. Refer to these instructions, here, to learn how to compile a custom kernel for fedora.

There are 3 files you need to enable zram for Fedora. They are:

  • zramstart (Bash Script)
  • zramstop (Bash Script)
  • zram.service (Systemd Service File)
Get these files from here.

Place zramstart and zramstop in the following folder.
/usr/bin

Place zram.service in the following folder.
/etc/systemd/system

As root, run the following commands to enable zram for Fedora.
systemctl daemon-reload
systemctl enable zram.service
systemctl start zram.service

Run the following command to make sure the zram service started properly.
systemctl status zram.service

The output should look like this.
zram.service - Enable compressed swap in memory using zram
Loaded: loaded (/etc/systemd/system/zram.service; enabled)
Active: active (exited) since Sun, 02 Oct 2011 22:46:31 -0400; 44min ago
Process: 942 ExecStart=/usr/bin/zramstart (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/zram.service