\documentclass[a4paper]{article}
\usepackage[english]{babel} \usepackage{hyperref} \usepackage{float}
\usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{graphicx}
\usepackage[colorinlistoftodos]{todonotes} \usepackage{tikz}
\usepackage{pdfpages} \usepackage{listings}
\usetikzlibrary{arrows,positioning,shapes.geometric}
\title{How swappiness kernel affects the compression performance }
\author{\normalsize Author: Dennis Kingston / Author: Jesús Alberto Hernández Espinoza \\\normalsize}
\date{\color{black}October 15 2016}
\begin{document} \maketitle
\section{Abstract}
Nowadays is very important for people, who can afford a computer, that their machine has the adequate components, physical and digital, so that it can run fast enough without running out of memory.
Zip files are very important in terms of memory because it's essential for sharing big files and that is why we decided to do the Phoronix test suite for the 7-zip program. We are going to compare the results and how they affect performance by modifying the kernel.
\section{Introduction}
The format compression zip is used to compress files, images, software, etc, this format was created by Phil Katz that launched in January 1989 the first version of software compression PKZIP. Zip files are individual files that could contain one or many compress files. A zip file is easy to be shared, transported, sent by e-mail, or downloaded. 7-Zip is open source software and the most of the source code is under the GNU LGPL license, we can use 7-Zip on any computer and is totally free, for this software we have high compression ratio with LZMA and LZMA2, supported formats like 7z, xz, tar, etc to packing and ar, arj, cab, iso to unpacking (Pavlov)
Linux is an operating system that manages all of the hardware resources in a computer, there are different versions like Ubuntu, fedora, back track, etc. Operating systems based in Linux are open source this means that we could do many things with the system, for example we could manage or change the kernel.
The kernel is a program that constitutes the central core of a computer operating system. It has complete control over everything that occurs in the system and is the part of the operating system to load into memory during booting (LinuxFoundation)
\section{Objective}
The main objective of this work is to compare the different results between the different kernel configurations when compressing a file.
\section{Justification}
The quantity of data in the internet is overwhelming, that is why compressing files has become very important in the last years. For example, nowadays a picture has more resolution than five years ago and this pictures last longer to be downloaded or uploaded than the pictures from 2010.
Zip files make a big difference in terms of speed, zip files reduce the amount of memory of the file and when you send them, it sends faster.
On the other hand, zip files may lose information when compressing them.
\section{Development}
For this report we will use the Phoronix-test-suite application, in order to help us with the comparison between the different rates of speed when compressing a file with different kernel modifications.
These are the steps we followed in order to run the tests:
\begin{itemize}
\item Install Ubuntu
\item Install Phoronix Test Suite
\item Prove that it works correctly by listing available tests
\item Run a test
\item Modify the kernel. The swappiness we used: 60,50,40,20.
\end{itemize}
To do the process with phoronix we use the benchmark 7zip, this is a test of 7-Zip using p7zip with its integrated benchmark feature. We ran the test and modified the parameter swappiness in Linux kernel, this parameter does the process to use swap in the kernel. A swap is a process to use hard drive space to store temporal data to reduce the use of RAM
\section{Results}
To analyze zip compression we use phoronix modifying the swapping and showed this results:
Test 1: Swapping = 60
\centering
\includegraphics[width=0.9\textwidth]{test12.png}
\includegraphics[width=0.9\textwidth]{test13.png}
Test 2: Swapping = 50
\centering
\includegraphics[width=0.9\textwidth]{test22.png}
\includegraphics[width=0.9\textwidth]{test23.png}
Test 3: Swapping = 40
\centering
\includegraphics[width=0.9\textwidth]{test32.png}
\includegraphics[width=0.9\textwidth]{test33.png}
Test 4: Swapping = 20
\centering
\includegraphics[width=0.9\textwidth]{test42.png}
\includegraphics[width=0.9\textwidth]{test43.png}
Graphs
\centering
\includegraphics[width=0.9\textwidth]{image.png}
\includegraphics[width=0.9\textwidth]{image_2_.png}
\includegraphics[width=0.9\textwidth]{image_3_.png}
\section{Conclusion}
To conclude, we can see that indeed the swappiness of the kernel affects the performance (speed, standard error and standard deviation).As we saw in the results, compressing files faster, can get you more errors,that is why you need to be clever on how to configure the kernel so that you can get the maximum speed with the minimum errors.
Zip files have become more important as people demand better performance to send and receive faster information.
\section{References}
\begin{thebibliography}{}
\bibitem{Pavlov} Pavlov, I.
(n.d). 7-Zip. Recovered from http://www.7-zip.org/
\bibitem{LinuxFoundation} LinuxFoundation(n.d). What is linux?. Recovered from https://www.linux.com/what-is-linux
\bibitem{Deepack} Deepack, P . What is swappiness and how do we change its value?, Recovered from http://www.golinuxhub.com/2014/01/what-is-swappiness-and-how-do-we-change.html
\bibitem{Deepack} Deepack, P . What is swappiness and how do we change its value?, Recovered from http://www.golinuxhub.com/2014/01/what-is-swappiness-and-how-do-we-change.html
\end{thebibliography}
\end{document}