一、基本简介

SQLite 是一个自持的(self-contained)、无服务器的、零配置的、事务型的关系型数据库引擎。因为他很小,所以也可以作为嵌入式数据库内建在你的应用程序中。SQLite 被应用在 Solaris 10操作系统、Mac OS 操作系统、iPhone 和 Skype 中。QT4 、Python 、 PHP 都默认支持 SQLite ,Firefox Amarok 等流行的应用程序在内部也使用了 SQLite.

SQLite 数据库引擎实现了主要的 SQL-92 标准,引擎本身只有一个文件,大小不到 300k ,但是并不作为一个独立的进程运行,而是动态或者静态的链接到其他应用程序中。它生成的数据库文件是一个普通的磁盘文件,可以放置在任何目录下。SQLite 本身是 C 语言开发的,开源也跨平台,并且被所有的主流编程语言支持。

相关资源

wikipedia.org

本日志由 flyinweb 于 2011-09-28 10:45:45 发表到 数据库技术 中,目前已经被浏览 345 次,评论 0 次;

作者添加了以下标签: SQLite

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

解决Centos5上升级Python后yum不能用的问题

把Centos5上的Python升级到2.6后,用yum安装东西时提示

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
 
 No module named yum
 
Please install a packagewhich provides this module, or
verify that the module is installed correctly.
 
It's possible that the above module doesn't match the
current version of Python, which is:
2.6.5 (r265:79063, Jul  22010, 16:30:56)[GCC 4.1.2 20080704(Red Hat 4.1.2-46)]If you cannot solve this problem yourself, please go to
the yum faq at:
 http://wiki.linux.duke.edu/YumFaq

解决方法:
由于yum 默认用的是python2.4,所以编译vim /usr/bin/yum

把#!/usr/bin/python 改为
#!/usr/bin/python2.4 即可

本日志由 flyinweb 于 2011-09-27 17:28:49 发表到 Linux 中,目前已经被浏览 367 次,评论 0 次;

作者添加了以下标签: yumNo module named yum

Tokyo Cabinet 是日本人 平林幹雄 开发的一款 DBM 数据库,该数据库读写非常快,哈希模式写入100万条数据只需0.643秒,读取100万条数据只需0.773秒,是 Berkeley DB 等 DBM 的几倍。

点击在新窗口中浏览此图片



Tokyo Tyrant 是由同一作者开发的 Tokyo Cabinet 数据库网络接口。它拥有Memcached兼容协议,也可以通过HTTP协议进行数据交换。

  Tokyo Tyrant 加上 Tokyo Cabinet,构成了一款支持高并发的分布式持久存储系统,对任何原有Memcached客户端来讲,可以将Tokyo Tyrant看成是一个Memcached,但是,它的数据是可以持久存储的。这一点,跟新浪的Memcachedb性质一样。

本日志由 flyinweb 于 2011-09-27 16:53:12 发表到 数据库技术 中,目前已经被浏览 389 次,评论 0 次;

作者添加了以下标签: Tokyo TyrantTTServer

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

htop - an interactive process viewer for Linux

This is htop, an interactive process viewer for Linux. It is a text-mode application (for console or X terminals) and requires ncurses. Tested with Linux 2.4 and 2.6.

htop

官方网站:http://htop.sourceforge.net/
  可以进行水平或竖直滚动 (总算可以看到所有进程和全部命令行了)
  可以跟踪进程 (通过集成strace实现)
  主页面上显示常用功能项,很方便。top里可以要'h'一下。
  支持进程树状显示
  可以按名称查找进程
  支持鼠标
  htop很不错,但还可以做得更好,下面是我想要的功能:
  显示进程打开的文件
  显示进程内存映射情况
  更完整的man手册(比如设置更新周期的命令行选项'-d'就没有在手册中说明)
  P.S. strace是个宝贝。单独做一个strace前端本身就是个不错的项目,支持对strace结果的分类,查询等功能。

本日志由 flyinweb 于 2011-09-27 16:39:59 发表到 Linux 中,目前已经被浏览 378 次,评论 0 次;

作者添加了以下标签: htop

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

linux系统上可以使用(centos 2.6.18-144开始支持),dstat版本至少是:dstat-0.6.7-1.rf.noarch.rpm
安装
wget -c http://linux.web.psi.ch/dist/scientific/5/gfa/all/dstat-0.6.7-1.rf.noarch.rpm
rpm -Uvh dstat-0.6.7-1.rf.noarch.rpm


使用
# dstat -M topio -d -M topbio


本日志由 flyinweb 于 2011-09-27 14:40:26 发表到 Linux 中,目前已经被浏览 455 次,评论 0 次;

作者添加了以下标签: dstat

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

Newer Linux kernels have per-process I/O accounting and you can use the iotop tool to find out what’s performing I/O, but in many cases I’m trying to find the source of an I/O problem in an older kernel. I found sort of a hack-ish way to do that today, while trying to figure out why a system was basically unresponsive.

I found a post on Stack Overflow that showed a way you can get per process I/O statistics from the kernel even in older kernels. I adapted this to my needs, and wrote a little script.

本日志由 flyinweb 于 2011-09-27 14:38:13 发表到 Linux 中,目前已经被浏览 353 次,评论 0 次;

作者添加了以下标签: iodump

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

Mark Wong’s entry titled “Following up a couple questions from the presentation at PSU on January 8, 2009” just caught my eye:

What is ‘iopp’?

It’s a custom tool to go through the Linux process table to get i/o statistics per process. It is open source and can be downloaded from:

http://git.postgresql.org/?p=~markwkm/iopp.git;a=summary

本日志由 flyinweb 于 2011-09-27 14:34:58 发表到 Linux 中,目前已经被浏览 335 次,评论 0 次;

作者添加了以下标签: iopp

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

Following are few situations where you may be interested in performing a filesystem benchmarking.

=> Deploying a new application that is very read and write intensive.
=> Purchased a new storage system and would like to measure the performance.
=> Changing the RAID level and would like to measure the performance of the new RAID.
=> Changing the storage parameters and would like to know the performance impact of this change

This article gives you a jumpstart on performing benchmark on filesystem using iozone a free Filesystem Benchmark utility.

本日志由 flyinweb 于 2011-09-27 11:08:02 发表到 Linux 中,目前已经被浏览 294 次,评论 0 次;

作者添加了以下标签: I/O PerformanceIozone

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文