上一页 1 ··· 3 4 5 6 7
Background Writer (bgwriter)功能:负责定时写 shared buffer cache 中的 dirty shared buffers好处:a. 减少系统flush shared buffers到硬盘(已经被bgwriter做了)b. 在checkpoint中,不会看到I/O的突然性暴增,因为dirty buffers在背景中已经被flush进硬盘坏处:因为一直定时在背后flush disk,会看到平均硬盘I/O怎加(好过checkpoint时I/O暴增)设定:bgwriter_delay:sleep between rounds。 default 200(根据机器, Read More
posted @ 2013-04-22 11:05 立春了 Views(809) Comments(0) Diggs(0) Edit
解决pg:LOG: checkpoints are occurring too frequently (2 seconds apart)HINT: Consider increasing the configuration parameter "checkpoint_segments".默认checkpoint_segments = 3, 修改为32然后reload数据库重新测试。在postgreSQL.conf 中。使用大的checkpoint_segments可以有效的减少WAL的写入量, 原因是full_page_writes, 每次checkpoint之后第一次改变 Read More
posted @ 2013-04-21 20:23 立春了 Views(819) Comments(0) Diggs(0) Edit
在终端中运行 gconf-editor在打开的界面中选择: apps->gedit-2->preferences->encodings在右边的auto_detected和shown_in_menu上点右键编辑,点add,分别加入GB2312,并点UP按钮移动到第一位。关闭,就可以在gedit中显示中文了。 Read More
posted @ 2013-04-18 16:49 立春了 Views(315) Comments(0) Diggs(0) Edit
虚拟机平台:VirtualBox4系统平台:ubuntu12.04-win7虚拟机安装好ubuntu12.04系统,发现虚拟机与主机之间不能直接文本复制、粘贴等操作。原因:默认虚拟机禁止了共享粘贴板开启共享粘贴板:在虚拟机里面“设备”-》“共享粘贴板”-》“双向”即可 Read More
posted @ 2013-04-18 16:44 立春了 Views(817) Comments(0) Diggs(0) Edit
上一页 1 ··· 3 4 5 6 7