以下是对NUMA和cgroup的初次实践分享,仅供参考。详细介绍请参考:https://access.redhat.com/site/documentation/zh-CN/Red_Hat_Enterprise_Linux/6/html/Resource_Management_Guide/一、线上程序现象最近在不少os6.4的系统上发现机器负载较大,部分cpu使用率很高,但部分cpu..
分类:
其他好文 时间:
2014-05-27 03:56:17
阅读次数:
370
很久之前写过一个星星评级的样式,当时开发人员在嵌套代码的时候出现很多问题,同样的一个样式有的页面正常有的页面就出现星星错位的问题,仔细研究了一下代码,发现问题原来出在了inline-block上。目标样式:评级星星实现手段:相应样式:.star给一个灰色星星背景,display:inline-blo...
分类:
其他好文 时间:
2014-05-22 05:34:38
阅读次数:
204
最近把平时在项目中常用到的数据库分页sql总结了下。大家可以贴出分页更高效的sql语句。sqlserver分页第一种分页方法需用到的参数:pageSize
每页显示多少条数据pageNumber 页数 从客户端传来totalRecouds 表中的总记录数 select count (*) from ...
分类:
数据库 时间:
2014-05-22 04:21:33
阅读次数:
348
Given a linked list and a valuex, partition it
such that all nodes less thanxcome before nodes greater than or equal tox.You
should preserve the origi...
分类:
其他好文 时间:
2014-05-22 03:53:29
阅读次数:
313
Apache Cordova is a set of device APIs that
allow a mobile app developer to access native device function such as the camera
or accelerometer from Jav...
分类:
其他好文 时间:
2014-05-22 02:34:01
阅读次数:
264
usingandusing namespacehave validity only in
the same block in which they are stated or in the entire source code file if
they are used directly in th...
分类:
其他好文 时间:
2014-05-22 02:08:48
阅读次数:
268
看到一篇博文,受益匪浅,特此激励自己。内容转载自:BorisHuai前端修炼>如何成为前端开发高手HTML1. 标签的分类1. 标签表示一个元素2.
按性质划分: Block-Level和Inline-Level3. 按语义划分:Headings: h1, h2, h3, h4, h5, h6Par...
分类:
其他好文 时间:
2014-05-21 03:46:56
阅读次数:
549
有些朋友对配防火墙还是有问题,其实配置ASA防火墙很简单,常用的命令有hostname、interface(ipaddress、noshutdown、nameif、security-level)、nat、global、route、static、access-list、access-group。下面来解析一台ASA8.0的配置ASAVersion8.0(2)//注意版本,8.3以后NAT命..
分类:
其他好文 时间:
2014-05-20 21:55:33
阅读次数:
1000
其它用户开通正常,但唯一个用户无法开通Lync2013,启用时报错:“无法重试此操作:访问特权不够,不能执行该操作。00002098:SecErr:DSID-03150BC1,problem4003(INSUFF_ACCESS_RIGHTS),data0”上图:后经过查证,因此用户没有"启用继承"。
分类:
其他好文 时间:
2014-05-20 19:32:40
阅读次数:
469
python获得磁盘剩余空间statvfs:>>>importos
>>>importstatvfs
>>>vfs=os.statvfs("/home")
>>>vfs
(4096,4096,70959944,70058799,66396080,73269248,73234981,73234981,0,255)
>>>dir(statvfs)
[‘F_BAVAIL‘,‘F_BFREE‘,‘F_BLOCK..
分类:
编程语言 时间:
2014-05-20 18:14:07
阅读次数:
363