Te puede interesar :
ago
11
2010

Tips : Vaciar la Swap en Linux

Muchos servidores o sistemas Linux al tener demasiados archivos abiertos necesitan mucha SWAP y mucha memoria  RAM , para evitar que no se bloquee el servidor por tener la memoria SWAP llena, aqui tienes este script en bash para vaciar o liberar memoria o partición de intercambio (como lo queramos llamar) SWAP .

#!/bin/bash
echo -e "\nEstado Actual de Swap:"
free
swapoff -a ; swapon -a
echo -e "\nEstado despues de liberar Swap:"
free
echo "Swap Liberada Correctamente

Este script lo podues guardar en un archivo, lo haces ejecutable con “chmod +x ” y lo podues poner en tu CRON diario para que se vacie la partición.

NOTA: para reducir la tendencia a usar SWAP se modifica el archivo sysctl.conf con el siguiente valor:

vm.swappiness=20

16 Comentarios + Agregar Comentario

  • 999 Making usage of the right touring purses will guarantee which the products you’ve may very well be secured right until you can get into your desired destination. The new selection functions Sprouse’s iconic graffiti in addition as being a digitized rose, which include totes, satchels, louis vuitton black damier belt wallets, lv eva clutch scarves, louis vuitton flats bangles and footwear.
    mlb jerseys from china
    [url=http://www.gottschalkpolledherefords.com/mlb.html]mlb jerseys from china[/url]

  • 999 Making use of the ideal touring handbags will be sure that the products you may have are generally secured until such time as you have into your desired destination. The brand new selection functionality Sprouse’s legendary graffiti also being a digitized rose, which includes totes, satchels, louis vuitton outlet online store wallets, louis vuitton passport wallet scarves, new louis vuitton shoes bangles and shoes.
    replica christian louboutin thigh high boots

  • 999 Making usage of a wonderful touring handbags will be certain the products you possess tends to be secured until eventually you receive into your spot. The new assortment amenities Sprouse’s legendary graffiti likewise like a digitized rose, together with totes, satchels, louis vuitton tivoli bag wallets, louis vuitton graffiti shoes scarves, authentic louis vuitton handbags online bangles and sneakers.
    buy cheap red bottom shoes

  • 999 Creating use of an excellent traveling purses will ensure the items you’ve tend to be secured until such time as you will get into your place. The brand new assortment functionality Sprouse’s legendary graffiti too to be a digitized rose, such as totes, satchels, sofia coppola lv wallets, louis vuitton spring summer scarves, new louis vuitton shoes bangles and sneakers.
    cheap ugg bailey button triplet boots

  • 999 Producing usage of the proper traveling purses will guarantee the products you might have are often secured till you get into your desired destination. The brand new assortment features Sprouse’s legendary graffiti as well as being a digitized rose, such as totes, satchels, louis vuitton computer bags wallets, authentic lv bags on sale scarves, lv iphone 4 case bangles and shoes.
    wholesale nba jerseys

  • 999 Doing utilization of the ideal traveling handbags will assure that the gadgets you’ve got are usually secured before you will get into your place. The new collection functions Sprouse’s iconic graffiti too for a digitized rose, like totes, satchels, louis vuitton singapore website wallets, louis vuitton spring summer scarves, louis vuitton current designer bangles and shoes.
    cheap bengals jerseys for men

  • We’re undecided if they’re ample to halt a pedicab driver, but we have not yet positioned a great deal of our self esteem inside their fingers.. Via the internet TutorialsLet’s deal with it, a great number of of us really don’t provide the time or funds to utilise hair dressers, lv scarve for sale make-up artists and stylists on even an occasional foundation.
    louis vuitton handbags outlet stores

  • We are not sure if they’re plenty of to halt a pedicab driver, but we haven’t still put a great deal of our self-worth in their hands.. Web-based TutorialsLet’s experience it, a large number of of us please don’t have the time or financial resources to employ hair dressers, vuitton usa make-up artists and stylists on even an occasional foundation.
    cheap louis vuitton replica handbags

  • We’re unsure should they be enough to stop a pedicab driver, but we haven’t yet positioned a great deal of of our self esteem within their hands.. Via the internet TutorialsLet’s face it, loads of of us do not contain the time or dollars to make use of hair dressers, louis vuitton boat shoes makeup artists and stylists on even an occasional basis.
    cheap nhl hockey jerseys

  • <a href="http://omegashop.freekindledude.com/]オメガ 時計 メンズ コピー最安値海外通販! http://omegashop.freekindledude.com/

  • <a href="http://www.progettoroad.net/jp/celine/]セリーヌバッグ 激安通販店激安セール http://www.progettoroad.net/jp/celine/

  • <a href="http://www.ccieworkbook.net/jp/list/tomford/]トムフォード メガネコレクション速報 http://www.ccieworkbook.net/jp/list/tomford/

  • に関する商品一覧 http://furlajp.donateasnowflake.com/

  • The Chinese have a high-tech product line, which is composed of large screen LED “Black Mamba court,” the motion when the players on the pitch, sensors get their movements and sounds, the big screen will be in accordance with the appropriate Bryant himself action to make guiding image and challenge players. Bryant met with this high-tech stuff like a child like curiosity, it is very popular, full of praise.

  • 1.Pour Aperol, Gin and Lemon Juice into cocktail mixing glass. Stir.

Deja tu comentario