[blf@Logging /~]:

February 27, 2008

FreeBSD 7.0 available for download

Filed under: FreeBSD, UNIX — blowfisher @ 6:41 pm

FreeBSD 7.0 is available for download!~

FreeBSD LogoFreeBSD 7.0 Stable, the long awaited next major release of the popular open source BSD operating has finally arrived! The ISO’s can now be downloaded from the FreeBSD FTP or torrent servers. We still have to wait for the official announcement ;-)

Congratulations to the FreeBSD release engineering team for another great release of FreeBSD (release notes).

* What’s new in FreeBSD 7.0
* What is (was) cooking for FreeBSD 7.0

— by Gerard

DragonFly-1.12.0 RELEASED

Filed under: DragonFly, FreeBSD, UNIX — blowfisher @ 6:14 pm


26 February 2008

The DragonFly-1.12.0 Release is ready!

What is DragonFly BSD?

DragonFly is an operating system and environment originally based on FreeBSD. DragonFly branched from FreeBSD in 2003 in order to develop a radically different approach to concurrency, SMP, and most other kernel subsystems.

http://www.dragonflybsd.org

February 25, 2008

“FreeBSD”一词的来历

Filed under: FreeBSD — blowfisher @ 9:19 pm

http://www.freebsd.org/news/1993/freebsd-coined.html

February 23, 2008

支付宝用户规模参考数据

Filed under: c2c — blowfisher @ 10:40 pm

注册用户:5200万

截至2007年9月17日
——————————————————————————
日交易总额:1.9亿元
日交易笔数:100 万笔 (10-20笔/秒)
—————————————
企业级客户:50多万
C类用户:5200万

PostgreSQL 规模参考:400G+容量,N亿条记录

Filed under: PostgreSQL, database — blowfisher @ 7:30 pm

400G容量,N亿条记录

With our previous solution, we found it difficult to support databases over 50GB. Now, because of PostgreSQL, we are easily working with databases with 400GB+ of data and hundreds of millions of records… It has brought us to our markets spotlight and has played a primary role in our continuing growth of revenue.

Joshua Marsh, Listfusion

http://www.postgresql.org/about/quotesarchive

February 22, 2008

FreeBSD 7.0-RC3 Available

Filed under: FreeBSD — blowfisher @ 3:15 pm

The third release candidate of FreeBSD 7.0 is now available.

download:
ftp://ftp13.freebsd.org/pub/FreeBSD/ISO-IMAGES-i386/7.0

February 21, 2008

PostgreSQL: More Traffic than MySQL

Filed under: PostgreSQL, database, mysql — blowfisher @ 11:41 pm

MarkMail now has 635,000 PostgreSQL emails loaded and searchable

Comparing PostgreSQL and MySQL is kind of interesting. With all the talk about the LAMP (Linux/Apache/MySQL/PHP-Perl-Python) architecture you’d think MySQL had a lock on the open source database market, but based on simple message traffic analytics, PostgreSQL has a much higher level of community involvement.

来源: http://markmail.blogspot.com/2008/02/postgresql-more-traffic-than-mysql-and.html

February 19, 2008

建立PostgreSQL数据库热备系统

Filed under: PostgreSQL, database — blowfisher @ 5:09 pm

Creating an 8.2 warm-standby demo system

From: “Charles Duffy”
http://archives.postgresql.org/sydpug/2006-10/msg00001.php

February 18, 2008

[PGSQL-MAILIST]: Why isn’t an index being used when selecting a distinct value?

Filed under: PostgreSQL, database — blowfisher @ 3:11 pm

from Keaton Adams kadams#mxlogic.com

Version: Postgres 8.1.4
Platform: RHEL

Given this scenario with the indexes in place, when I ask for the distinct field1_id values, why does the optimizer choose a sequential scan instead of just reading from the kda_log_fid_cre_20080123_idx index? The time it takes to perform the sequential scan against 20+ million records is way too slow.

CREATE TABLE kda_log_20080213 (
"field1" character varying(255),
field character varying(100),
value bigint,
period integer DEFAULT 60,
created timestamp with time zone DEFAULT ('now'::text)::timestamp(6) with time zone,
customer_id integer,
field1_id integer
);
CREATE INDEX kda_log_cid_cre_fld_20080213_idx ON kda_log_20080213 USING btree (customer_id, created, "field1");
CREATE INDEX kda_log_fid_cre_20080213_idx ON kda_log_20080213 USING btree (field1_id, created);

# explain select distinct field1_id into temp kda_temp from kda_log_20080213;

QUERY PLAN
----------------------------------------------------------------------------------------------
Unique (cost=5759201.93..5927827.87 rows=8545 width=4)
-> Sort (cost=5759201.93..5843514.90 rows=33725188 width=4)
Sort Key: field1_id
-> Seq Scan on kda_log_20080213 (cost=0.00..748067.88 rows=33725188 width=4)
(4 rows)

“Keaton Adams” writes:

> Version: Postgres 8.1.4
> Platform: RHEL
>
> Given this scenario with the indexes in place, when I ask for the distinct
> field1_id values, why does the optimizer choose a sequential scan instead of
> just reading from the kda_log_fid_cre_20080123_idx index? The time it takes
> to perform the sequential scan against 20+ million records is way too slow.

Try (temporarily) doing:

SET enable_seqscan = off;

> keaton=# explain select distinct field1_id into temp kda_temp from
> kda_log_20080213;

If the database is right that will be even slower. Using a full index scan
requires a lot of random access seeks
, generally the larger the table the
*more* likely a sequential scan and sort is a better approach than using an
index
.

If it’s wrong and it’s faster then you have to consider whether it’s only
faster because you’ve read the table into cache already. Will it be in cache
in production? If so then you migth try raising effective_cache_size or
lowering random_page_cost
.

Another thing to try is using GROUP BY instead of DISTINCT. This is one case
where the postgres optimizer doesn’t handle the two equivalent cases in
exactly the same way and there are some plans available in one method that
aren’t in the other. That’s only likely to help if you have relative few
values of field1_id but it’s worth trying.

February 17, 2008

把你的数据交由PostgreSQL管理的10个理由

Filed under: PostgreSQL, database — blowfisher @ 8:48 pm

10 reasons to entrust your data to PostgreSQL.

1. Data Integrity
2. Freedom
3. Standard compliance
4. Clear and robust source code
5. Performance
6. Scalability
7. Native full text search engine
8. Many stored procedures languages
9. Mutiple replication tools
10. An active international community>

February 14, 2008

vsftpd-2.0.6 released

Filed under: FreeBSD, ftp — blowfisher @ 11:06 am

Feb 2008 – vsftpd-2.0.6 released

* vsftpd-2.0.6 is released – with minor fixes and enhanced SSL support. STOU was fixed, some logging format bugs were fixed, and there were other minor fixes. The SSL support now includes the ability to force clients to present client cerfiticates, thus ensuring data channel security. Unfortunately, most FTP clients do not seem to care. Look for a post on my security research page for technical details: http://scary.beasts.org/. Please refer to the v2.0.6 Changelog and vsftpd FAQ (frequently asked questions) for a list of common questions!

* After numerous requests, I now have a PayPal button for donations. If you use vsftpd, like it, and think it’s worthy of a donation, then click on the Paypal button on the left of the page.

* ftp.freebsd.org switched to vsftpd.
* vsftpd tarballs are now GPG signed by me.

Changelog
http://vsftpd.beasts.org

February 12, 2008

扔掉 ORM 的理由

Filed under: database — blowfisher @ 11:49 pm

how to check if given update is from trigger or why i hate orms?

* we use orm
* yes, and?
* and we have a problem with it…
* you already said that

now, imagine a simple scenario:

* objects table (let’s name it “topics”), which contains column: posts_count
* sub-objects table (posts), with foreign key to topics
* triggers which update posts_count on insert/update/delete on posts

simple? yes? well. it was. now, enter disaster: orm.

— by depesz

PostgreSQL: work_mem tuning and log_temp_files

Filed under: PostgreSQL, database — blowfisher @ 6:48 pm

work_mem 优化及 log_temp_files

work_mem is used for sorts, aggregates, and a few other operations. This is non-shared memory, which is allocated per-operation (one to several times per query); the setting is used to put a limit on the amount of RAM any single operation can grab before being forced to disk through temp files. If it is been forced to the disk that can cause a bad execution time

With PostgreSQL 8.3 a new variable got added names as “log_temp_files” that enables/disables whether temporary files are logged when deleted. These temp files can be created for sorts, hashes, and temporary query results.

log_temp_files can be used to better tune the values for work_mem after analyzing the usage of temp files (from the db server logs) for a certain query so that you can minimize or nullify the temp file usage by raising the values for work_mem.

-Shoaib (shoaibmir[@]gmail.com)

相关参考: PostgreSQL Blog’s 8.3 Feature Round-Up

February 9, 2008

Can We Fix The Web?

Filed under: web2.0 — blowfisher @ 9:20 pm

Can We Fix The Web?

The Web needs fixing. The standards and recommendations that define the Web were last revised in 1999. Since then, the Web has grown from a document retrieval system into an application delivery system. We have made significant progress since then, due to the cleverness of the Web development community and the surprising expressive power of JavaScript, but we are at the limits. The Web is no longer a driver of innovation. It is now a serious impediment.

The Web is overly complex. It is visually underpowered. It is hopelessly insecure. It is now under competitive assault by new proprietary platforms that hope to capture the next generation of applications. Can a system as large and as open as the Web heal and adapt itself to the challenges of the 21st Century?

http://openwebdeveloper.sys-con.com/read/483504.htm

February 6, 2008

KDE 4.0.1 available

Filed under: KDE — blowfisher @ 1:36 pm

2008-2-5, KDE 发布了版本4的第一个更新版本,该版本包含了多个错误修正,性能提升和更完善的多国语言支持。

On 5th February 2008, the KDE Community released the first update to the fourth major version of the K Desktop Environment. The release contains numerous bugfixes, performance improvements and translation updates.

KDE 4.0.1 Release Announcement
chane logs
Download KDE 4.0.1

February 5, 2008

PostgreSQL 性能参照一则

Filed under: PostgreSQL, database — blowfisher @ 11:21 pm

来自 PostgreSQL case studies 的一则参考数据:

We process over 18,000 queries per second on over 300GB of user data on our PostgreSQL servers, and those numbers go up every month.
Gavin Roy, CTO of MyYearbook.com

18,000 查询/秒
数据库容量: 300GB

PostgreSQL 8.3 正式发布

Filed under: PostgreSQL, database — blowfisher @ 11:11 pm

新增特性包括:
* Heap Only Tuples
* BGWriter Autotuning
* Asynchronous Commit
* Spread Checkpoints
* Synchronous Scan
* "Var-Varlena"
* L2 Cache Protection
* Lazy XID
* CSV Logging
* SQL/XML
* MS Visual C++ support
* ENUMs
* Integrated Tsearch
* SSPI & GSSAPI
* Composite Type Arrays
* pg_standby

详细参考:
http://www.postgresql.org/about/press/features83.html

各历史版本特性对照:
http://www.postgresql.org/about/featurematrix

February 2, 2008

道听途说:嫦娥工程

Filed under: tech — blowfisher @ 1:08 pm

“嫦娥一号”避月食提前调轨,精度达万分之三,有能力攻击日本卫星…

……

嫦娥一号卫星奔月途中,原计划需要200余公斤燃料进行的3次中途修正。由于轨道控制精度提高了两个数量级,结果只用10公斤燃料一次达到轨控效果。比原计划节省了190多公斤燃料,相当于卫星绕月飞行两年所需燃料。

唐歌实介绍说,嫦娥一号卫星的轨道确定、轨道控制、计划生成和动力学仿真等测控应用软件均为自主研制,包括了60多个进程,4300多个模块,35万行源程序。北京航天飞控中心轨道室目前正在进行探月二期工程和深空探测后续任务的相关论证工作。

据嫦娥探月工程总指挥介绍,我国早在20年前就有能力将卫星送上月球,这次嫦娥一号之所以比日本月亮女神较晚些时候发射,是因为我们要首先获取月亮女神的数据,然后再给予嫦娥距月高度以及轨道的定位.因为我们的卫星轨道比日本的卫星轨道高,这样一旦嫦娥与月亮女神相遇,月亮女神看不到我们的嫦娥,嫦娥却能够观测到月亮女神,必要时还可以对其作些技术动作…

来源

February 1, 2008

收购雅虎…挽救雅虎…

Filed under: yahoo — blowfisher @ 9:27 pm

微软出价446亿美元洽购雅虎

microsoft!

……

塞梅尔的思维方式与雅虎以科技为本的企业文化有着很大的差异。塞梅尔于2001年初加盟雅虎,当时正值互联网泡沫破碎,雅虎的发展前景堪忧,股价也持续下跌。为了扭转颓势,他改变了雅虎的发展方向,希望将雅虎转型为一家基于互联网的媒体巨头,为用户提供全方位的内容和服务,包括新闻、个人广告、数字视频和音乐,并通过广告从中获益。尽管塞梅尔带领雅虎度过了困难时期,但他那好莱坞式的风格和特点从未得到大部分人的认同。

一个最大的问题是,塞梅尔几乎没有任何技术背景。苹果前高管、风险投资公司Allegis Capital的合伙人路易斯·卡西(Jean-Louis Gassée)表示:“塞梅尔就像是一条离开水的鱼。加盟雅虎之前,他几乎没有任何科技行业背景,而这是在科技行业获得成功的一个必要不充分条件。这正是谷歌大获成功的原因。”

引用来源

www.blowfisher.net  |  Powered by WP