- 使用SSD加速系统IO;
- 通过LVMCACHE来将SSD作为HDD的CACHE使用;
[root@localhost mnt]# lvm segtypes
(看输出里面有cache,cache-pool即表示支持了)
#!/bin/bash | |
# | |
# cachestat - show Linux page cache hit/miss statistics. | |
# Uses Linux ftrace. | |
# | |
# This is a proof of concept using Linux ftrace capabilities on older kernels, | |
# and works by using function profiling for in-kernel counters. Specifically, | |
# four kernel functions are traced: | |
# | |
# mark_page_accessed() for measuring cache accesses |
#!/usr/bin/env python | |
# | |
# Dumb script to dump (some) of bcache status | |
# Copyright 2013 Darrick J. Wong. All rights reserved. | |
# | |
# This file is part of Bcache. Bcache is free software: you can | |
# redistribute it and/or modify it under the terms of the GNU General Public | |
# License as published by the Free Software Foundation, version 2. | |
# | |
# This program is distributed in the hope that it will be useful, but WITHOUT |
registry = https://registry.npm.taobao.org |
[global] | |
index-url = https://pypi.douban.com/simple/ | |
[install] | |
trusted-host = pypi.douban.com | |
[list] | |
format = columns |
/usr/local/bin | |
/opt/bin | |
/usr/bin | |
/bin | |
/usr/sbin | |
/sbin |
set nocompatible | |
" set encodings | |
set encoding=utf-8 | |
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1 | |
" few options just make things better | |
set scrolloff=3 | |
set showmode | |
set showcmd |
if [[ $(echo $TERM | grep "rxvt-unicode") != "" ]]; then | |
export TERM=rxvt | |
fi | |
if [ "$TERM"x = "xterm-256color"x ]; then | |
export TERM=xterm | |
fi | |
if [ "$TERM"x = "screen-256color"x ]; then | |
export TERM=screen |
#!/bin/bash | |
# 1. 清除规则 | |
iptables -F | |
iptables -X | |
iptables -Z | |
# 2. 设定政策 | |
iptables -P INPUT ACCEPT #REJECT | |
iptables -P OUTPUT ACCEPT |
#!/bin/bash | |
# Alex Alexander (wired) <alex.alexander@gmail.com> | |
# http://www.linuxized.com | |
# | |
# this script makes sure your .mozilla folder is in tmpfs and constantly syncs it | |
# with a folder on your hdd so you won't lose anything :) | |
# for more details on how it works visit my blog in the link above. | |
# | |
# for this to have any meaning, the MOZTMPFS folder must be on tmpfs | |
# i.e. to make /var/tmp a tmpfs folder, add the following in /etc/fstab |