123
 123

Tip: 看不到本站引用 Flickr 的图片? 下载 Firefox Access Flickr 插件 | AD: 订阅 DBA notes --

2008-06-24 Tue

21:40 为人民服务的LV包包 (699 Bytes) » Fenng's shared items in Google Reader

长期以来,LV包包一直是奢侈品的象征,是一望即知的“被人民服务”品牌。然而,根据全型男的报道,LV最近在中国推出了一款限量版的“为人民服务”Longchamp挂包皮包。



Longchamp,Philippe Cassegrain设计

这也更加充分地说明了一个命题:为=被。

21:00 咖啡馆装修进行时 (882 Bytes) » Fenng's shared items in Google Reader

装修前后的手续比想象中麻烦和拖拉,装修的过程比想象中的麻烦要少一点。今天去拍了几张照片,作为过程的留念。之前还拍过一次。

这是刚开始不久,做完了钢结构,吊顶刚开始,厨房被区隔开,泥工的活儿做了一半。

这张照片就大致能看出咖啡馆的风格,以松木为主。木吊顶和木地板。

我非常非常喜欢这个工作的场景。

还得3周左右。估计。

20:29 小胜 (834 Bytes) » 柔嘉维则@life.oracle.eng
我跟lg这几年一直在诋毁对方拔高自己中过来,从小学中学大学谁的学校好谁的名次高,一直到身材容貌,品位吃相,德性悟性等等等等,最后都激化到浙江人跟四川人之间的斗争。
昨天晚上我终于在中学问题上小胜,可是这小子还死不承认,心服口不服,还说我就是一胆小怕事的......后面那严重诬蔑我的名词我就是想不起来了。
20:01 ORA-600(15851)错误 (560 Bytes) » yangtingkun
一个11g上面的错误。会话的cursor_sharing设置不为EXACT时,且GROUP BY操作中,聚集函数的参数是常量时,会引发这个bug。下面通过一个简单的例子来再现问题:SQL> SELECT * FROM V$VERSION;BANNER----------------------------------------------------------------------------Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit ProductionPL/SQL Release 11.1.0.6.0 - ProductionCORE 11.1.0.6.0 ProductionTNS for Solaris: Version 11.1.0.6.0 - ProductionNLSRTL Version 11.1.0.6.0 - ProductionSQL> SELECT MAX(...
20:01 ORA-600(15851)错误 (560 Bytes) » yangtingkun
一个11g上面的错误。会话的cursor_sharing设置不为EXACT时,且GROUP BY操作中,聚集函数的参数是常量时,会引发这个bug。下面通过一个简单的例子来再现问题:SQL> SELECT * FROM V$VERSION;BANNER----------------------------------------------------------------------------Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit ProductionPL/SQL Release 11.1.0.6.0 - ProductionCORE 11.1.0.6.0 ProductionTNS for Solaris: Version 11.1.0.6.0 - ProductionNLSRTL Version 11.1.0.6.0 - ProductionSQL> SELECT MAX(...
19:26 virtual swap space on solaris (2601 Bytes) » eagle's home

有人对solaris上的swap space提出了如下的疑问:

swap -l:
swapfile dev swaplo blocks free
/dev/vx/dsk/bootdg/swapvol 40,75002 16 33540080 33540080

swap -s :
total: 55705168k bytes allocated + 273872k reserved = 55979040k used, 15937056k available

top:
load averages: 8.08, 7.88, 7.52 00:06:43
361 processes: 355 sleeping, 1 zombie, 5 on cpu
CPU states: % idle, % user, % kernel, % iowait, % swap
Memory: 64G real, 7482M free, 53G swap in use, 15G swap free

swap -l显示的是physical swap file的大小 33540080 (blocks) * 512 (blocksize) = 16377MB,实际使用的physical swap file是0 (blocks - free blocks),而top中显示的是53G swap in use。swap -s中used的大小为55979040k (53.4G),和top的值相符。那么实际使用的swap space大小究竟是多少,physical swap space究竟是多少。

上面几个不同的数据确实让人迷惑,不过如果我们了解了solaris的virtual swap space机制,一切就很好理解了。写之前百度了一下,没有发现有文章很好的解释这个概念。

virtual swap space和virtual memory不同,注意不要混淆了。virtual swap space是在swap space之上虚拟的一层swap space。

先说说传统的方法,当application创建virtual memory是,要在swap space上reserve一段空间以便当physical memory不够的时候可以换出到swap space上。所以有physical swap space的大小最好为physical memory两倍大小的说法。

引入virtual swap space后,这一部分reserve的swap space是虚拟的,而不是真实的physical swap space。当有真实数据写入physical memory page的时候,这部分virtual swap状态转为reserved and allocated.这时候swap还是虚拟的swap space,并没有在physical swap space上创建,所以swap -l显示实际使用的physical swap space为0。只有当真正有swap out发生,也就是要将memory page的内容写入swap的时候,才会使用physical swap space。在这样的机制下,不需要像上面说的2倍物理内存大的swap space,系统也可以正常的运行。上面的例子中物理内存为64G大小,physical swap file大小仅为16G大小。

所以上面top里面显示了53G swap space (virtual swap space),而swap -l中swap space显示16G (physical swap space),使用的physical swap space 为0
swap -s中的 “used” 也是指的virtual swap space上reserved和reserved & allocated swap space的大小

19:26 virtual swap space on solaris (2701 Bytes) » Fenng's shared items in Google Reader

有人对solaris上的swap space提出了如下的疑问:

swap -l:
swapfile dev swaplo blocks free
/dev/vx/dsk/bootdg/swapvol 40,75002 16 33540080 33540080

swap -s :
total: 55705168k bytes allocated + 273872k reserved = 55979040k used, 15937056k available

top:
load averages: 8.08, 7.88, 7.52 00:06:43
361 processes: 355 sleeping, 1 zombie, 5 on cpu
CPU states: % idle, % user, % kernel, % iowait, % swap
Memory: 64G real, 7482M free, 53G swap in use, 15G swap free

swap -l显示的是physical swap file的大小 33540080 (blocks) * 512 (blocksize) = 16377MB,实际使用的physical swap file是0 (blocks - free blocks),而top中显示的是53G swap in use。swap -s中used的大小为55979040k (53.4G),和top的值相符。那么实际使用的swap space大小究竟是多少,physical swap space究竟是多少。

上面几个不同的数据确实让人迷惑,不过如果我们了解了solaris的virtual swap space机制,一切就很好理解了。写之前百度了一下,没有发现有文章很好的解释这个概念。

virtual swap space和virtual memory不同,注意不要混淆了。virtual swap space是在swap space之上虚拟的一层swap space。

先说说传统的方法,当application创建virtual memory是,要在swap space上reserve一段空间以便当physical memory不够的时候可以换出到swap space上。所以有physical swap space的大小最好为physical memory两倍大小的说法。

引入virtual swap space后,这一部分reserve的swap space是虚拟的,而不是真实的physical swap space。当有真实数据写入physical memory page的时候,这部分virtual swap状态转为reserved and allocated.这时候swap还是虚拟的swap space,并没有在physical swap space上创建,所以swap -l显示实际使用的physical swap space为0。只有当真正有swap out发生,也就是要将memory page的内容写入swap的时候,才会使用physical swap space。在这样的机制下,不需要像上面说的2倍物理内存大的swap space,系统也可以正常的运行。上面的例子中物理内存为64G大小,physical swap file大小仅为16G大小。

所以上面top里面显示了53G swap space (virtual swap space),而swap -l中swap space显示16G (physical swap space),使用的physical swap space 为0
swap -s中的 “used” 也是指的virtual swap space上reserved和reserved & allocated swap space的大小

15:28 Red Hat Summit: post-show links (3683 Bytes) » Red Hat Magazine

We’re still collecting all the news, updates, and postings from the Red Hat Summit. Now that our teams are back in the office, the real work of compiling all the video, audio, and materials we gathered has begun.

We know you’re all clamoring for more than links–the most popular question has been about the session and keynote videos and slide decks. The first few keynote videos are up at the Summit web site. We’ll be adding more as soon as some legal and liscensing issues are dealt with.

The slide decks are also on their way. The first few should be available this week, with more to follow.

And it won’t all be recap–also coming up are several articles that follow up on Summit and FUDCon topics, from the same folks that presented them in Boston.

In the news:

Other voices:

14:10 Linux vs. Closed-Source Kernel Modules (4613 Bytes) » Fenng's shared items in Google Reader

There's an uneasy relationship between Linux and some of the bits that make it work on many computers - closed-source kernel modules. These modules - NVidia video card drivers are the most notorious example - add substantial, and sometimes critical, functionality to Linux without themselves being open source. Now a group of kernel developers are on the record with their opposition to these modules.

The group of over 100 kernel developers, in a statement hosted by the Linux Foundation, pull no punches:

We, the undersigned Linux kernel developers, consider any closed-source Linux kernel module or driver to be harmful and undesirable. We have repeatedly found them to be detrimental to Linux users, businesses, and the greater Linux ecosystem. 

The statement closes by urging vendors to provide open source kernel modules where this would benefit customers - pointing out that this would also allow the open source community to support the modules, cutting down on vendors' support costs.

While this is a noble sentiment, it's unclear how much impact it will really have on the vendors concerned. Certainly vendors like NVidia and LexMark already know that the Linux community is less-than-happy with them, but have still chosen to go the closed-source route. Particularly in the video driver case, the advantages of preserving a proprietary lead on the major platforms may well outweigh, in strict dollar-and-cents terms, any goodwill with the open source community.

Over the long run, efforts like the Open Graphics Project  may have more effect than public statements. If it does prove possible to sell a completely open system at a profit, that will get the major vendors' attention in a way that has not yet been possible.

Trackback URL for this post:

http://ostatic.com/trackback/166063

Related Activities

Related Software

Related Blog Posts

09:17 数据字典视图之:v$dlm_traffic_controller (5255 Bytes) » Oracle Life

©作者:eygle 发布在 eygle.com

v$dlm_traffic_controller用于控制RAC中DLM的流量,其视图结构为:

SELECT inst_id, kjitrftlid, kjitrftrid, kjitrftrrd, kjitrftinc, kjitrftta,
      kjitrfttl, kjitrfttr,
      DECODE (kjitrfttw, 0, 'NO        ', 'YES      '), kjitrftss,
      kjitrftsr, kjitrftsql, kjitrftsqm, kjitrftsqt, kjitrftqtb, kjitrftqtw,
      kjitrftst, kjitrftpxy
  FROM x$kjitrft

其字段对应关系为:
SQL> desc v$dlm_traffic_controller
Name                                      Null?    Type
----------------------------------------- -------- --------------------------------------------
LOCAL_NID                                          NUMBER
REMOTE_NID                                        NUMBER
REMOTE_RID                                        NUMBER
REMOTE_INC                                        NUMBER
TCKT_AVAIL                                        NUMBER
TCKT_LIMIT                                        NUMBER
TCKT_RCVD                                          NUMBER
TCKT_WAIT                                          VARCHAR2(10)
SND_SEQ_NO                                        NUMBER
RCV_SEQ_NO                                        NUMBER
SND_Q_LEN                                          NUMBER
SND_Q_MAX                                          NUMBER
SND_Q_TOT                                          NUMBER
SND_Q_TM_BASE                                      NUMBER
SND_Q_TM_WRAP                                      NUMBER
STATUS                                            NUMBER
SND_PROXY                                          NUMBER

以上数据来自Oracle10g 10.2.0.4环境。

-The End-

相关文章|Related Articles

评论数量(0)|Add Comments

本文网址:

08:01 Percona is looking for a Perl and Python expert (3211 Bytes) » MySQL Performance Blog

If you’re a Perl and/or Python expert (preferably both), Percona may have a job for you.

We’re looking to either hire or sponsor significant development efforts for some open-source tools for MySQL, including but not limited to Maatkit and the Master-Master Replication Manager. This could be full-time or part-time, depending on the person and what seems to make the most sense. You can work remotely.

You must already be an expert coder. You don’t have to be a MySQL expert, though it will help if you are at least at an intermediate level with it. You must have proven experience in test-driven development. You will be writing clean, efficient, well-tested code. Your work will be open-source and transparent to the world, and open-source experience is a plus. You can expect expert guidance and help (especially with the MySQL-specific parts), but a significant amount of freedom and autonomy as well.

Send your resume and samples of your work to ‘jobmysql’ at our blog’s domain name.


Entry posted by Baron Schwartz | No comment

Add to: delicious | digg | reddit | netscape | Google Bookmarks

07:57 荒废荒废…… (3670 Bytes) » ERN空间
Blog又荒废了好久。今天晚上突然心血来潮,又不读书又不看美剧,上网补了补功课,看看自己的blog,又看看几个朋友、同事的,心情大好,兄弟姐妹们的文笔太好了,哈哈。很长一段时间以来,身边都发生着很大变化,据说还可能持续下去。换了一个不错的电脑,从来还没能把CPU折磨到80%以上,可是写blog和泡网络的热情突然降低了许多。以往经常去泡的CNOUG、色影无忌、CNGBA等等,似乎都不那么有吸引力了。去年还曾经迷过一段时间天涯,现在有半年多没上去了,年初天天泡的豆瓣也荒废了。大概也就剩下去VeryCD搜刮下资源,到新浪看看新闻了。突然之间觉得,其实网络生活并没有那么大的吸引力。以往总觉得网络上高手如云,看看别人的帖子颇有启发。现在的网络却充满了各种炒作,看到个美女首先想到是背后有推手;看到个激烈的帖子,也没什么想法了,人家就是找骂搏个回帖率呢。网络已经不那么虚拟了,和现实中很多地方一样,逐渐充满浮躁、欺诈。
      越来越喜欢静静的待在书房,甚至音乐也不听了。昨天“偷得浮生半日闲”看完了《一 滴泪》,忽然觉得自己的生活还是阳光多了些。当一个人的生活跌宕起伏如作者一样,想来也不会抱怨生活工作中的点点无奈与不顺心。关于那二十年,听说过很多,却没想到一些事情是这样的。
      几个月以来,慢慢追上了Boston Legal的进度。花了几个月,因为不大舍得看完。两个男主角的搞怪之余,却影射了美国社会乃至西方不少问题。编剧的观点并不算激进,不过却容易引发思考。主角自然是赢官司机会多,不过在依靠陪审团和案例法体制的审判里,似乎又合情合理。不过觉得老美还是很狡猾的,看过一些律政片了,大多选择了相对容易表达的初审,就没看到过专注于上诉甚至最高法院提卷的(当然,最高法院似乎也不进行一般庭审,直接读案卷写意见居多吧)。
      推荐完美剧就推荐书吧。买了第二版的差不多10年以后,入手了LDOCE(Longman Dictionary of Contemporary English)第四版修订二版(反正是2006以后的印刷就对了)。作为学习型词典,编排相当不错,继续保持释义准确易懂的同时,增加了例句(特别是电子版里),套上了彩色,丰富了插图(昨晚临睡前看到了bread的插图,各色的bread折磨了十来分钟,终于还是懒得起来找吃的)。如果一个词释义很多,还会在一些详细解释之前标上粗略的含义,极大方便了查找;原来的语言用法、辨析也得到了扩充,除掉包含同义词辨析,还有口语书面语使用频率分析、最常用错方式的提醒等等。再推荐两套莎士比亚吧,国内引进了新阿登版,非常详细和专业;Amazon上Penguin出版社的Pelican单行本版本在打两折,加上运费差不多每本20块不到,比国内引进还便宜……我自己嘛,持续啃Plato中。
06:45 [Python]惊!django项目遭动物保护组织MM大街裸体抗议! (2218 Bytes) » Fenng's shared items in Google Reader
Shared by 清风
:D

python-cn列表看到巨搞笑的一个笑话

以下内容转自博客 http://techfaux.com/2008/06/17/peta-targets-computer-programmers-with-string-of-bizarre-protests/ 作者Bryan Woods

MM anti python hacking

Django Project是用Python语言写的一个敏捷开发Web框架,和RoR类似的。每个月Python社区的程序员都要到Lawrence去参加party聚会,一来是交流感情,二来是炫耀最新的技术。

如果通常这样的聚会是“有趣”的,上一周的hackathon就是非常“囧”的了。晚上8点的时候越来越多的程序员赶到了Lawrence办公室,同时25-30个白人女性也开始在房间周围出现

好,8:15分,她们开始脱衣服,身上带一个牌子,写道:“一件衣服多少钱?”、“蛇是动物,动物是有灵性的!”

程序员都跑出来看热闹了,Jacob Kaplan-Moss说:“太他妈的无敌了!她们全部了”

那帮裸女说:“我知道他们在干嘛。他们在猎杀蟒蛇(hacking pythons)。这是野蛮的行径,我们会一直守在这里,直到最后一条蟒蛇被拯救为止。”

……

后来作者问了下python语言之父Guido Van Rossum关于这件事的看法。他有他读到的见解。“什么是女人?!”他问到。

est备注:“hacking python”的意思不是“猎杀蟒蛇”,而是“黑客般研究python语言”。PETA组织保护动物就算了,还找那么多MM裸体抗议,真猛!

06:30 关联Firefox和eMule小结 (2610 Bytes) » ERN空间
对我来说,firefox已经是90%的浏览器了,前几天顺应潮流升级到了3.0。还没有觉出特别大的变化,不过新的想来总是不错的,呵呵。用上新东西的同时,却遇到了老问题——firefox关联不上eMule,在网站上点击ed2k的链接根本不会调用eMule。在2.0的时代我就曾经遇到这个问题了,第一次点击ed2k链接的时候会提示选择一个程序来处理,之后升级了一次eMule就再也无法使用了,一直到我用了这个方法:
[quote]
在firefox地址栏输入about:config
新建“布尔”
名称为:network.protocol-handler.external.ed2k
值为:true

新建“字符串”
名称为:network.protocol-handler.app.ed2k
值为:已经改名的hiweed兼容层的文件路径,例如,/home/use/emule/emule
[/quote]

原想依葫芦画瓢应该是可以的,结果不行。今天偶然来了灵感,终于搞定了。
我买了新电脑以后换上了Vista,所以首先修改一下运行firefox的链接,让它默认以管理员身份运行。firefox还是很安全的,不必担心;
其次,上面是通过修改firefox本身的设置,那么我们是否选择过关联应该也记录在某个地方吧。进入about:config,输入“ed2k”,看到“network.protocol-handler.warn-external.ed2k”么?双击修改为“true”吧。
现在重新启动你的firefox,OK了吧。
另外,上面的操作只是在你确认你的eMule设置正常的情况下哦,整个系统的默认设置可以进入“eMule——选项——常规——关联ed2k链接”,这个按钮灰化了?去注册表删除所有HKEY_CLASSES_ROOT\ed2k\...和HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ed2k\...项目之后,再按一次试试吧。
其实上面这个操作就是验证这个信息:
HKEY_CLASSES_ROOT\ed2k\shell\open\command
名称: (Standard)
类型: REG_SZ
资料: "emule.exe 的路径(包含引号!)" %1
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ed2k\shell\open\command
名称: (Standard)
类型: REG_SZ
资料: "emule.exe 的路径(包含引号!)" %1
05:46 如何调动核心员工的积极性 (2950 Bytes) » Fenng's shared items in Google Reader
有朋友问我:如何调动核心员工的积极性,又能防止出现关键人员变动如离职带来的影响 ? 概要解答如下: 1 物质     (1)奖:基本工资+奖金,奖金的比例要大,否则对开发人员没有压力和动力     (2)高:总待遇要比同行业略高         (3)同:采用股票等措施拴住技术人员,有福同享,有难同当 2 精神         (1)松:提供一个宽松的工作环境,不要是一个官僚化的氛围。为技术人员提供各种服务,让他们产生家的感觉,产生依赖的感情。         (2)升:提供发展的上升空间,比如待遇、职务、福利等,规划好发展的职业路线,让他们看到希望       (3)新:采用新技术、新方法、新岗位,总之要“变化”,有变化才有挑战,有挑战才能激发热情,有变化才能学习到新的东西。     (4)荣:各种荣誉,各种title,满足其个人荣誉感。     (5)服:公司的高层要有人格魅力,成为精神开发人员的精神领袖,这样他们就可以追随领袖,任劳任怨的工作       (6)双:任何工作安排好备份,1人为主,1人为辅,以防万一
02:30 Nokia Acquires Symbian - Goes Open Source (1913 Bytes) » Fenng's shared items in Google Reader

Nokia have today announced that they will be acquiring the remaining 52% of Symbian they don’t own and will be releasing the complete Symbian platform under the Eclipse open source license. Nokia have also announced the creation of the Symbian Foundation, which is an alliance of mobile vendors and application providers that any company can join.


Continue reading on TechcrunchIT.com >>

Crunch Network: MobileCrunch Mobile Gadgets and Applications, Delivered Daily.

02:25 集体婚礼 (294 Bytes) » Uploads from dbanotes

dbanotes posted a photo:

集体婚礼

00:12 Turning Movable Type into a light weight desktop blogging client (2204 Bytes) » Fenng's shared items in Google Reader

Apple fans will love one of the latest tips from our community: how to turn your Movable Type blog into a seamless extension of your OS X desktop and operating system. In the first article Jesse Gardner explains how one can combine two technologies to create an awesome desktop blogging application: Movable Type and Fluid.

Fluid makes it possible to turn any online application into a desktop app. Its free and dead-simple to use. Jesse and others use it for example to put GMail, Basecamp, Google Calendar, Flickr, Facebook and many other online applications right into their OS X dock.

MT4 in the OS X Dock

What makes Movable Type and Fluid work especially well together is the iMT plugin, which provides a beautifully designed user interface specifically for iPhone users. Coupled with Fluid's ability to let any application it bootstraps to masquerade as an iPhone, Fluid can be used to bring all the benefits of the dramatically simplified iPhone user interface of the iMT plugin right to your desktop. And because iMT conforms to Apple's own interface conventions and aesthetics, your Movable Type desktop client could not feel like a more natural extension of your Mac OS X environment.

Fluid and iMT Mash Up

2008-06-23 Mon

23:00 闲话各家开放平台 » Fenng's shared items in Google Reader
22:30 Tru64 Unix高级文件系统(AdvFS)以GPL协议开源 » Fenng's shared items in Google Reader
21:14 理想中的办公室 » Uploads from dbanotes
21:11 使用双网卡聚合提高服务器高可用性 » Fenng's shared items in Google Reader
20:19 百万记录级MySQL数据库及Discuz!论坛优化 » Fenng's shared items in Google Reader
20:10 当我们70岁时 » 柔嘉维则@life.oracle.eng
19:57 Neat tricks for the MySQL command-line pager » MySQL Performance Blog
19:42 intel 的cpu与服务 » 人生就是如此
19:28 1.5 Million Australian Students Dump Outlook/Exchange For Gmail » Fenng's shared items in Google Reader
19:23 写的不如卖的 » Fenng's shared items in Google Reader
17:32 多任务处理是有害的 » Fenng's shared items in Google Reader
10:01 最小化Oracle升级时间 » Brotherxiao's Home
09:31 Good News — Mnesia Unlimited! » Fenng's shared items in Google Reader
09:00 Google Reader 每日阅读 [2008-06-24] » Fenng's shared items in Google Reader
08:44 dbms_metadata的进一步学习 » OracleBlog.cn
07:30 InfoQ_arch [Flickr] » DBA notes
06:38 InfoQ_arch_2 » Uploads from dbanotes
06:37 InfoQ_arch » Uploads from dbanotes
06:07 难道google与yahoo有仇? » Give you some color to see see!
05:01 系统管理员工具包: 使用 SNMP 数据 » developerWorks 中国 : 技术文章 , 教程 AIX
00:12 根据表名搜索SQL语句 » AnySQL.net

2008-06-22 Sun

21:02 Will Falcon fly? » MySQL Performance Blog
20:31 Oracle10G LOGMNR捕获不到记录(一) » del.icio.us/fenng/oracle
18:45 罗列 Oracle 10G OCM 考点 » OracleDBA Blog---请享受无法回避的痛苦!
17:15 韧带拉伤如何最快恢复? » 生活帮-LifeBang
10:39 香港印象 » Fenng's shared items in Google Reader