Forgot your password?
typodupeerror
User Journal

Journal Journal: .vimrc

set number
set backspace=2
set textwidth=78
set dir=~/tmp/vi

map ESC[1;3C    <ESC>:tabnext<CR>
map ESC[1;3D    <ESC>:tabprevious<CR>

imap ESC[1;3C   <ESC>:tabnext<CR><Insert>
imap ESC[1;3D   <ESC>:tabprevious<CR><Insert>

map ^N          <Esc>:tabedit
imap ^N         <Esc>:tabedit

map ^L          <Esc>:vsplit
imap ^L         <Esc>:vsplit

map ^S          <Esc>:w<CR>
imap ^S         <Esc>:w<CR><Insert>

map ^S^A        <Esc>:wall<CR>
imap ^S^A       <Esc>:wall<CR><Insert>

map ^W^Q^A      <Esc>:wqa<CR>

map <Tab>       <Insert><Tab><Esc>

map <F11>       <Esc>:set number<CR>
map <F12>       <Esc>:set nonumber<CR>
imap <F11>      <Esc>:set number<CR><Insert>
imap <F12>      <Esc>:set nonumber<CR><Insert>

"
" in response to,
" http://linuxtoday.com/news_story.php3?ltsn=2009-05-03-007-35-OS-HL
"
User Journal

Journal Journal: is ext3 slow 2

or, rm ?

disk,

        root@bubu $ mount /dev/sda1 on / type ext3 (rw,noatime,nodiratime,acl,user_xattr,data=writeback)

kernel,

        root@bubu $ cat /sys/block/sda/queue/scheduler
        noop anticipatory [deadline] cfq

directory to remove,

        root@bubu $ ls -l 0A/ | wc -l
        25601

those 25061 nodes is only an empty directory, it was a squid empty cache.

time's to remove all nodes in directory,

        root@bubu $ time rm -rf 0A/

        real 5m12.053s
        user 0m0.155s
        sys 0m8.857s

NOTE TO MYSELF: never use ext3 for database, proxy, or any disk related machine.
TODO: try another file system (?)

Slashdot Top Deals

Even bytes get lonely for a little bit.

Working...