Está en la página 1de 13

******* PARAMETROS GRUB *********************

GRUB_CMDLINE_LINUX_DEFAULT=" intel_idle.max_cstate=0 processor.max_cstate=0 inte


l_pstate=enable quiet splash rootflags=data=writeback threadirqs numa=on zswap.e
nabled=1 idle=halt acpi_backlight=vendor"
GRUB_CMDLINE_LINUX_DEFAULT="elevator=noop usbcore.autosuspend=-1 nolapic_timer c
locksource=jiffies intel_idle.max_cstate=0 processor.max_cstate=0 intel_pstate=e
nable quiet splash rootflags=data=writeback threadirqs numa=on zswap.enabled=1 i
dle=halt transparent_hugepage=always commit=600 nohz=off"
**********************************************

IO-Scheduler MODIFICACIN
Se comprueba la velocidad del disco con:
hdparm -Tt /dev/sdX
Para comprobrar el scheduler por defecto:
cat /sys/block/sdX/queue/scheduler # X es la letra de nuestra SSD
noop deadline [cfq] # aparece entre corchetes
Esto comprueba y saca por pantalla scheduler todos los discos:
for f in /sys/block/sd?/queue/scheduler; do printf "$f is "; cat $f; done
Para cambiar scheduler de forma manual:
sudo echo noop > /sys/block/sdX/queue/scheduler # X letra de la SSD
o aadiendo al archivo /etc/sysfs.conf
block/sdX/queue/scheduler = deadline
Si el sistema est compuesto de diferentes tipos de discos duros, SSD y HDD
podra ser interesante ajustar un scheduler diferente a cada uno de ellos con una
regla UDEV:
Creamos:
/etc/udev/rules.d/60-ssd-scheduler.rules
Dentro de este archivo introducimos lo siguiente:
set deadline scheduler for non-rotating disks
# seleccion de deadline como scheduler para los HDD, (discos rotativos)
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue
/scheduler}="deadline"

***** SWAP ******Editamos el archivo /etc/sysctl.conf


vm.swappiness=1 # tendencia a usar la swap. 60 (de 100) por defecto
vm.vfs_cache_pressure=50 # tendencia del kernel a reclamar la memora usada para
cachear el sistema de archivos en lugar de otras cachs. Bajamos de 100 a 50, para
que no se reclame con tanta urgencia.
vm.dirty_writeback_centisecs=1500 # frecuencia con la que se escriben en el dis
co los datos guardados temporalmente en la cach. 500 por defecto, incrementamos p
ara limitar las escrituras
******************************************

************ TRIM AL ARRANQUE ************


editar el archivo /etc/rc.local
date > /home/javier/.trim/registroTrim.txt
echo "**********************************" >>/home/javier/.trim/registroTrim.txt
echo "Registro de actividad trim en disco SSD al arranque" >> /home/javier/.trim
/registroTrim.txt
echo "" >> /home/javier/.trim/registroTrim.txt
fstrim -v /boot >> /home/javier/.trim/registroTrim.txt
fstrim -v / >> /home/javier/.trim/registroTrim.txt
echo "**********************************" >>/home/javier/.trim/registroTrim.txt
echo "habilitar hdparm" >> /home/javier/.trim/registroTrim.txt
/sbin/hdparm -B 254 /dev/sda >> /home/javier/.trim/registroTrim.txt
/sbin/hdparm -B 254 /dev/sdc >> /home/javier/.trim/registroTrim.txt
echo "**********************************" >>/home/javier/.trim/registroTrim.txt
#DESHABILITAR TRANSPARENT HUGEPAGE ####################
if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
echo never > /sys/kernel/mm/transparent_hugepage/enabled
fi
if test -f /sys/kernel/mm/transparent_hugepage/defrag; then
echo never > /sys/kernel/mm/transparent_hugepage/defrag
fi
exit 0

********* TRIM SEMANAL ***************************


/etc/cron.weekly/fstrim
#!/bin/sh
# trim all mounted file systems which support it
echo "Registro trim semanal" > /home/javier/.trim/registroTrim.txt
echo "*********************************" >> /home/javier/.trim/registroTrim.txt
date >> /home/javier/.trim/registroTrim.txt
/sbin/fstrim --all -v >> /home/javier/.trim/registroTrim.txt || true
echo "*********************************" >> /home/javier/.trim/registroTrim.txt
echo "" >> /home/javier/.trim/registroTrim.txt

********** ****** EJEMPLO /fstab *******************


GNU nano 2.2.6
tc/fstab

Archivo: /e

# /etc/fstab: static file system information.


#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options>
<dump> <pass>
# / was on /dev/sdb2 during installation
UUID=e11b4f8b-5f4d-4438-afeb-ae1892ec0bf4 /
ext4
noatime,nodira
time,discard,errors=remount-ro 0
1
# /boot was on /dev/sdb1 during installation
UUID=3e581b0a-2c12-4090-8674-1deda39a1db6 /boot
ext4
noatime,nodira

time,discard,errors=remount-ro 0
2
# /home was on /dev/sda3 during installation
UUID=1be86fb9-ab24-4351-a1ee-08ff95e3de61 /home
xfs
defaults
0
2
# /var was on /dev/sda1 during installation
UUID=d4a79e1e-39c2-4b7e-8ee7-d1cc0091cd88 /var
xfs
defaults
0
2
# swap was on /dev/sda2 during installation
UUID=d1745346-cae9-429f-bf29-15bba59db6ab none
swap
sw
0
0
#MONTO DISCO DURO EXTERNO AL ARRANQUE
#UUID="2E2E-A2A9" /home/javier/Toshiba_external_HDD
vfat rw,auto,user,asyn
c,suid,dev,exec,umask=0000
0 2
tmpfs /tmp tmpfs noatime,mode=1777 0 0
tmpfs /var/tmp tmpfs noatime,mode=1777 0 0
tmpfs /home/javier/.cache/google-chrome tmpfs noatime,nosuid,nodev,mode=1777
0 0
tmpfs /var/spool tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/log tmpfs defaults,noatime,mode=0755 0 0
#tmpfs /var/log/apt
tmpfs defaults,noatime
0 0
tmpfs /var/cache/apt/archives tmpfs defaults,noexec,nosuid,nodev,mode=0755
0 0
#tmpfs /home/javier/.config/google-chrome tmpfs noatime,mode=1777 0 0
#FTP
#curlftpfs#jmarp1:jmarp1@77.27.131.129 /home/javier/FTP_ruben21.d fuse auto,user
,noatime,uid=1000,allow_other,_netdev 0 0
*******************************************************************
*** CONEXION RED *******************
Configure the following /etc/sysctl.conf settings for faster TCP
GNU nano 2.2.6
Archivo: /etc/sysctl.conf
#
# /etc/sysctl.conf - Configuration file for setting system variables
# See /etc/sysctl.d/ for additional system variables.
# See sysctl.conf (5) for information.
#
#kernel.domainname = example.com
# Uncomment the following to stop low-level messages on console
#kernel.printk = 3 4 1 3
##############################################################3
# Functions previously found in netbase
#
# Uncomment the next two lines to enable Spoof protection (reverse-path filter)
# Turn on Source Address Verification in all interfaces to
# prevent some spoofing attacks
#net.ipv4.conf.default.rp_filter=1
#net.ipv4.conf.all.rp_filter=1
# Uncomment the next line to enable TCP/IP SYN cookies
# See http://lwn.net/Articles/277146/
# Note: This may impact IPv6 TCP sessions too
#net.ipv4.tcp_syncookies=1

# Uncomment the next line to enable packet forwarding for IPv4


#net.ipv4.ip_forward=1
# Uncomment the next line to enable packet forwarding for IPv6
# Enabling this option disables Stateless Address Autoconfiguration
# based on Router Advertisements for this host
#net.ipv6.conf.all.forwarding=1
###################################################################
# Additional settings - these settings can improve the network
# security of the host and prevent against some network attacks
# including spoofing attacks and man in the middle attacks through
# redirection. Some network environments, however, require that these
# settings are disabled so review and enable them as needed.
#
# Do not accept ICMP redirects (prevent MITM attacks)
#net.ipv4.conf.all.accept_redirects = 0
#net.ipv6.conf.all.accept_redirects = 0
# _or_
# Accept ICMP redirects only for gateways listed in our default
# gateway list (enabled by default)
# net.ipv4.conf.all.secure_redirects = 1
#
# Do not send ICMP redirects (we are not a router)

********* REPOSITORIO **************


sudo add-apt-repository ppa:graysky/utils # profile-sync-daemon

*********************************
systemctl status hdparm.service
************* MONTAR DISCO DURO EXTERNO DESDE fstb ***********************
***** OBTENER UUID DE LOS DISCOS **********
Varias formas
ls -l /dev/disk/by-uuid
o tambin:
blkid /dev/sdX
*************************
montar disco:
#MONTO DISCO DURO EXTERNO AL ARRANQUE
UUID="2E2E-A2A9" /home/javier/Toshiba_external_HDD
,suid,dev,exec,umask=0000
0 2
**************

vfat rw,auto,user,async

******* CPU frequency scaling ******************


PAGINA: http://wiki.linuxaudio.org/wiki/system_configuration
CPU frequency scaling
If your CPU supports frequency scaling and the CPU frequency scaling governor is
set to ondemand (which is the default on a lot of distros) you could run into x
runs. The ondemand governor scales the frequency according to the CPU load, the
more the load, the higher the frequency. But this is happening independently fro
m the DSP load on your system so it could happen that the DSP load suddenly rise
s for instance, demanding more CPU power, and that the scaling daemon kicks in t
oo late, resulting in xruns because the DSP load maxes out. A solution would be
to use a CPU frequency scaling daemon that scales the frequency according to the
DSP load on your system like jackfreqd or to simply disable CPU frequency scali
ng altogether. The latter can be achieved by setting the scaling governor to per
formance.
To check which governor is active:
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
Setting the governor to performance:
echo -n performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_gove
rnor
You could also add a line to your /etc/rc.local file for instance to set the gov
ernor to performance at boot time:
echo -n performance > /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
Ubuntu
On Ubuntu systems the command in your /etc/rc.local file only works if you disab
le the ondemand service:
sudo update-rc.d ondemand disable
Another option would be to modify the ondemand init script and rename it to perf
ormance:
sudo sed -i 's/ondemand/performance/g' /etc/init.d/ondemand
sudo update-rc.d ondemand disable
sudo cp /etc/init.d/ondemand /etc/init.d/performance
sudo update-rc.d performance defaults
Debian
On Debian you can control the scaling governor with the cpufreq-set utility whic
h is part of the cpufrequtils package:
sudo cpufreq-set -r -g performance
On installation the package also installs an init script in /etc/init.d/cpufrequ
tils and a configuration file in /etc/default/cpufrequtils. To have the governor
always set to performance make sure the configuration file looks as follows:
ENABLE="true"
GOVERNOR="performance"
MAX_SPEED="0"
MIN_SPEED="0"
**INFORMACION SOBRE PROCESADOR ****
cat /sys/devices/system/cpu/cpu*/cpufreq/*cur_freq or /proc/cpuinfo

****** DESPUES DE INSTALAR RESTRICTED-AREAS UBUNTU ************


hai que actualizar cache:
sudo fc-cache
************** DE VEZ EN CUANDO ***************
sudo rm /var/lib/ureadahead/pack
***********************************************
************* LANZADOR APLICACIONES UNITY *****************
sudo nano /usr/share/applications/eclipse.desktop
[Desktop Entry]
Name=Eclipse
Comment=Eclipse
Exec=/home/lince/eclipse/eclipse
Icon=/home/lince/eclipse/icon.xpm
Terminal=false
Type=Application
*********************************************************
**************** FUENTES INFINITY ***********************
First let add the infinality font repository from launchpad.
sudo nano /etc/apt/sources.list
#Infinality Fonts
deb http://ppa.launchpad.net/no1wantdthisname/ppa/ubuntu trusty main
deb-src http://ppa.launchpad.net/no1wantdthisname/ppa/ubuntu trusty main

First we have to add keys to access the repository. To do that, we have to run,
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E985B27B
Now lets update & install infinality font.
sudo apt-get update
sudo apt-get install fontconfig-infinality

To configure infinality font, follow these steps


cd /etc/fonts/infinality/
sudo bash infctl.sh setstyle
Select a style:
1) debug 3) linux 5) osx2 7) win98
2) infinality 4) osx 6) win7 8) winxp
#?

I chose 3 (i.e. linux).

Now lets change the font style.


sudo vi /etc/profile.d/infinality-settings.sh
#################################################################
########################### EXAMPLES ############################
#################################################################
#
# Set the USE_STYLE variable below to try each example.
# Make sure to set your style in /etc/fonts/infinality.conf too.
#
# Possible options:
#
# DEFAULT Use above settings. A compromise that should please most people.
# OSX Simulate OSX rendering
# IPAD Simulate iPad rendering
# UBUNTU Simulate Ubuntu rendering
# LINUX Generic Linux style no snapping or certain other tweaks
# WINDOWS Simulate Windows rendering
# WINDOWS7 Simulate Windows rendering with normal glyphs
# WINDOWS7LIGHT- Simulate Windows 7 rendering with lighter glyphs
# WINDOWS Simulate Windows rendering
# VANILLA Just subpixel hinting
# CUSTOM Your own choice. See below
# Infinality styles
# CLASSIC Infinality rendering circa 2010. No snapping.
# NUDGE CLASSIC with lightly stem snapping and tweaks
# PUSH CLASSIC with medium stem snapping and tweaks
# SHOVE Full stem snapping and tweaks without sharpening
# SHARPENED Full stem snapping, tweaks, and Windows-style sharpening
# INFINALITY Settings I use
# DISABLED Act as though running without the extra infinality enhancements (just
subpixel hinting).
USE_STYLE=UBUNTU
Now search for USE_STYLE or scroll (around line 710) till you see the option to se
t the style.
Now change the value of USE_STYLE as per your preference & save the file. Im usin
g UBUNTU style in this example.

LCD Filter Setting


We need to set the LCD filter setting in our home directory using a file called .
Xresources.
Method 1
Create a new file and name it as .Xresources.
Open the file (If you cant see the file, then you need to change setting to show
hidden files), add the following line, save & close the file
Xft.lcdfilter: lcddefault
Method 2

Run the following command


echo "Xft.lcdfilter: lcddefault" >> ~/.Xresources
Note: In my LCD display, font rendering look best with hinting set to slight. Yo
u may change this value medium or full as per your preference.

Xfce
Go to Settings -> Appearance.
Tick the checkbox to Enable anti-aliasing
Set Sub-pixel order to RGB
Set Hinting to Slight
Xfce4 Font Setting

Gnome
Gnome does not have options to configure font rendering methods. So you need to
install gnome-tweak-tool which can be done by running the following command.
sudo apt-get install gnome-tweak-tool
Then change the settings
Open Gnome tweak tool and to fonts setting.
Set Antialiasing to RGB
Set Hinting to Slight
Logout & login back to see the new font rendering.

Check Font Rendering Settings


You can check the current font rendering settings by running the following comma
nd,
xrdb -query
On running the above command, you should see the following settings.
Xft.dpi: 96
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault
Xft.rgba: rgb
***************************************************************
****************** PRELINK ***********************************
En la mayora de distribuciones Linux prelink viene en los repositorios oficiales.
Por lo tanto para instalar prelink abrimos un terminal y tecleamos:
sudo apt-get install prelink
Seguidamente para activar prelink tenemos que acceder a su archivo de configurac
in. Para acceder a su archivo de configuracin tecleamos el siguiente comando en la

terminal:
sudo gedit /etc/default/prelink
Se abrir el editor de textos. Ahora tenemos que modificar los siguientes parmetros
del archivo de configuracin:
Dentro del fichero veremos que hay el siguiente texto:
PRELINKING=unknown
Tenemos que modificar esta linea y dejarla como podis ver a continuacin:
PRELINKING=yes
Nota: Es posible que en vuestra distro el valor estndard de la variable PRELINKIN
G sea NO en vez de UNKNOWN. Si es este el caso lo nico que hay que hacer es cambiar e
l no por yes
Dentro del mismo archivo de configuracin tambin podemos modificar las opciones de
funcionamiento de prelink. Dentro del archivo de configuracin veremos una linea q
ue pone:
PRELINK_OPTS=-mR
-mR son las opciones de configuracin estndard de prelink. En mi caso las modifico
quedando del siguiente modo:
PRELINK_OPTS=-amR
El significado de cada una de las opciones de configuracin es:
a: Especifica que se haga un prelink de la totalidad de binarios y de las librera
s especificadas en el directorio /etc/prelink.conf.
m: Opcin que permite un ahorro de memoria cuando se enlazan los ficheros binarios
y las libreras compartidas. Lo consigue de la siguiente manera. Antes hemos dich
o que prelink asigna una direccin virtual nica a cada una de las libreras compartid
as. Pero bajo determinadas circunstancias prelink har que distintas librerias pue
dan tener la misma direccin virtual nica con el consecuente ahorro de memoria. Est
a opcin es sobretodo til en el caso que el nmero de enlaces a realizar sea alto.
R: El proceso de asignar direcciones a las librearas compartidas lo hace de forma
aleatoria.
Para tener una explicacin ms detallada del funcionamiento y de las diferentes opci
ones que tiene prelink podemos abrir una terminal y teclear:
man prelink
De este modo podemos ver y comprender la totalidad de opciones que nos ofrece pr
elink.
EJECUTAR PRELINK POR PRIMERA VEZ
Seguidamente iniciaremos prelink por primera vez. Para iniciarlo por primera vez
tenemos abrir una terminal e introducir el siguiente comando:
sudo prelink -amvR
Seguramente tendris que esperar un buen rato ya que en este momento se estn enlaza
ndo nuestras librearas compartidas con nuestros binarios. El proceso puede termin
ar con xito tal y como me paso con Xubuntu. Si el proceso termina con exito ya po
demos decir que la totalidad de nuestro binarios y nuestras libreras estn enlazado
s.
Tambin puede ser que se generen errores durante el proceso como me paso en Debian
Testing y en Debian Sid. En el caso que se den errores en medio del proceso de

enlace actuar del siguiente modo:


RESOLUCIN DE PROBLEMAS LA PRIMERA VEZ QUE EJECUTAMOS PRELINK
El tpico error que se puede dar es el que podis observar en la siguiente captura d
e pantalla:
Error Tpico de Prelink
Como podis ver se trata de una librera que no puede prelinkar. Se trata de la libr
era /usr/lib/apt/methods/rred. Como no puede enlazar esta librera se para el proce
so, y por lo tanto el proceso de preenlazar queda incompleto. Una solucin que ten
emos para hacer que se se termine el proceso es introducir las libreras que paran
el proceso de enlace a la lista negra de prelink. Para introducir a la lista ne
gra la totalidad de libreras que nos dan problemas tenemos que seguir los siguien
tes pasos:
Paso 1- Dar permisos de escritura al archivo /etc/prelink.conf. Este fichero es
el que contiene las rutas de los los binarios y libreras a preenlazar y donde deb
eremos introducir las excepciones. Para darle permisos de escritura abrimos una
terminal y tecleamos:
sudo chmod 666 /etc/prelink.conf
Paso 2- Ejecutamos prelink con el siguiente comando:
sudo prelink -amvR
Prelink se ejecuta hasta que nos da el error. Vemos que por ejemplo el error est
a en la librera /usr/lib/apt/methods/rred.
Paso 3- Introducimos la librera que contiene el error en la lista negra introduci
endo el siguiente comando en la terminal:
sudo echo -b /usr/lib/apt/methors/rred >> /etc/prelink.conf
Nota: La parte de color rojo del comando se tiene que modificar en funcin de la l
ibrera que se quiera introducir a la lista negra.
A continuacin dejo una captura de pantalla para que puedan observar como realice
los pasos 2 y 3:
Solucin de los errores de salida de Prelink
Paso 4- Seguidamente hay que ejecutar los pasos 2 y 3 tantas veces como sea nece
sario hasta que se pueda finalizar el proceso de enlazado.
Una vez finalizado el proceso si queremos podemos ver la totalidad de libreras in
troducidas en la lista negra. Solo tenemos que introducir el siguiente comando e
n la terminal:
gedit /etc/prelink.conf
La totalidad de libreras que en el editor de textos empiezan por -b estn en la lis
ta negra de prelink.
Nota: Es posible que tengis que introducir bastantes rutas de libreras en la lista
negra. Por lo tanto este proceso requiere de bastante paciencia.
ASEGURAR QUE PRELINK NO HAGA INESTABLE NUESTRO SISTEMA
Como hemos visto en la explicacin inicial estamos modificando los binarios de nue
stro sistema operativo para que puedan acceder a las libreras compartidas mucho ms
rpido de lo habitual. Esto significa que en el momento que actualicemos o recomp
ilemos un programa se perder el efecto de prelink ya que estaremos reemplazando e
l fichero binario modificado por otro completamente nuevo.

Por lo tanto despus de cualquier utilizacin es recomendable volver a ejecutar el c


omando:
sudo prelink -amvR
De este modo estaremos reconstruyendo los enlaces de las libreras compartidas con
los binarios. Este proceso es necesario realizarlo peridicamente para no perder
el efecto de prelink.
Si queremos evitar tener que rehacer los prenlaces cada vez que modifiquemos los
paquetes de nuestro sistema tenemos una solucin fcil. En el archivo de configurac
in /etc/default/prelink vemos que prelink viene configurado para ejecutarse automt
icamente cada 7 das a travs de cron.daily. Conociendo esto podemos hacer que se re
visen los enlaces automticamente cada vez que se modifiquen los ficheros de nuest
ro sistema. Para ello abrimos una terminal y tecleamos:
sudo gedit /etc/apt/apt.conf
Se abrir el editor de texto. Una vez dentro del fichero de configuracin de apt tan
solo tenemos que copiar el siguiente texto al final de fichero:
DPkg::Post-Invoke {"echo Ejecutando
/prelink";}
Guardamos, salimos y listo. De este
, ya sea con synaptic o con apt-get
os binarios sern pre enlazados con

prelink, por favor espere...;/etc/cron.daily


modo cada vez que se actualicemos un paquete
, se ejecutar prelink automticamente y todos l
las libreras correspondientes.

DESINSTALAR PRELINK
En el caso que no estemos satisfechos con el rendimiento de prelink podemos desh
acer la totalidad de acciones que hemos realizado siguiendo el siguiente proceso
:
Abrimos una terminal y tecleamos:
sudo gedit /etc/default/prelink
Una vez tengamos abierto el editor de texto buscamos la linea:
PRELINKING=yes
y la modificamos por:
PRELINKING=no
Guardamos el fichero. Abrimos una terminal y ejecutamos el siguiente comando:
sudo /etc/cron.daily/prelink
Seguidamente abrimos el archivo de configuracin de apt introduciendo el siguiente
comando en la terminal:
sudo gedit /etc/apt/apt.conf
Una vez abierto el editor de texto borramos la siguiente linea:
DPkg::Post-Invoke {"echo Ejecutando prelink, por favor espere...;/etc/cron.daily
/prelink";}
Finalmente ya solo nos queda ejecutar los siguientes comandos para no dejar rast
ro de prelink en nuestro sistema:
prelink -au
sudo apt-get remove --purge prelink
PROBLEMAS CONOCIDOS CON PRELINK
No se aconseja usar prelink en sistemas operativos que tengan un versin de kernel
inferior a 2.4.10. Creo que a da de hoy prcticamente no quedan sistemas que funci
onen con esta versin de Kernel.

Como hemos comentado prelink estar modificando los binarios de nuestras aplicacio
nes. Por lo tanto si tenemos instalados los paquetes checksecurity y tripwire no
s estarn dando advertencias constantemente. En principio estos paquetes no vienen
instalados de serie. Los 2 paquetes realizan comprobaciones bsicas de seguridad
en el sistema y tambin comprueban la integridad de los archivos y de las carpetas
.
Se aconseja no usar prelink en ordenadores en que tengamos problemas de espacio
en el disco duro. Se recomienda un espacio mnimo de al menos 50 MB. El motivo es
que prelink aade informacin tanto a nuestras libreras compartidas como en nuestros
ficheros binarios. Por lo tanto si no hay espacio suficiente para poder realizar
estas modificaciones podemos llegar a romper nuestro sistema.
Nota: Con todo lo citado en el post prelink puede llegar a parecer peligroso. No
obstante llevo tiempo usndolo y nunca me ha dado ningn problema. Tampoco he encon
trado casos en Internet de gente que le haya destrozado el sistema por el uso de
prelink. En definitiva prelink siempre me ha funcionado correctamente tanto en
sistemas de 32 bits como en sistemas de 64 bits.
INCREMENTO DE RENDIMIENTO PROPORCIONADO POR PRELINK
La verdad es que ha sido difcil encontrar gente que reporte sobre las mejoras obt
enidas con prelink. nicamente he hallado una fuente que reporta resultados. Los
resultados son los siguientes:

**************************************************************
******************** DPkg::Pre-Invoke ************************
/etc/apt/apt.conf.d
DPkg::Pre-Invoke {" date >> /home/javier/.trim/registroTrimInstalaciones.txt; e
cho Ejecutando fstrim antes de instalar paquete >> /home/javier/.trim/registroTr
imInstalaciones.txt; fstrim -v / >> /home/j$
**************************************************************
******SEMAPHORES***********************
Ver semaforos:
sysctl -A | grep kernel.sem
ipcs -ls
vi /etc/sysctl.conf
kernel.sem = 250 32000 100 128
or
sysctl -w "kernel.sem = 250 32000 100 128"
or
sysctl -w "kernel.sem=4096 512000 1600 2048"
from avg 50% to 20%]

[ Value reducing your CPU usage

kernel.sem: max_sem_per_id max_sem_total max_ops_sem_call max_sem_ids


**********************************************
# TRANSPARENT HUGEPAGE *******************
Ubuntu/Debian: /sys/kernel/mm/transparent_hugepage

cat /sys/kernel/mm/redhat_transparent_hugepage/enabled
*********************************************

******* OPTIMIZAR MAS UBUNTU ***************


Removing Ubuntu One client
Saves >100 MB ram.
The following steps can be followed to completely remove the Ubuntu One client s
oftware.
killall ubuntuone-login ubuntuone-preferences ubuntuone-syncdaemon
sudo rm -rf ~/.local/share/ubuntuone
rm -rf ~/.cache/ubuntuone
rm -rf ~/.config/ubuntuone
rm ~/Ubuntu\ One
sudo apt-get purge ubuntuone-client python-ubuntuone-storage*
Remove unused Unity lenses
sudo apt-get purge \
unity-lens-friends \
unity-lens-music \
unity-lens-photos \
unity-lens-shopping \
unity-lens-video \
unity-lens-radios
*********************************************************
Remove orphaned libraries
Over time most Ubuntu/Debian installations acquire packages which are no longer
required - they ve just been pulled in to satisfy dependencies of software you v
e since removed - deborphan package is probably the simplest way to get rid of o
rphaned and unused packages.
sudo apt-get install deborphan
sudo apt-get remove --purge deborphan; sudo apt-get autoremove
Clean browsers cache etc and vacuum browser databases.
sudo apt-get install bleachbit
bleachbit -c bleachbit -l | grep cache
bleachbit -c bleachbit -l | grep tmp
bleachbit -c bleachbit -l | grep vacuum
Clean rotated log files
sudo bleachbit -c system.rotated_logs
*****************************************************************
Clean temp and backup files
First do a dry-run and check that everything is good to go. bleachbit -p deepsca
n.*
and then do the real one bleachbit -c deepscan.*
********************************************************************

También podría gustarte