最近线上使用redis, 查询的情况不甚理想, 这个查询操作是个 lua 脚本, 包含如下操作开发机 redis, 没有其他干扰, 插入的 zset 有 5000 member 左右, 使用的 redis 客户端是 spring-data, 底层 jedis 实现, 另外自己封装了一层1. zran...
分类:
其他好文 时间:
2014-06-27 22:35:33
阅读次数:
586
工程目录:Singleton.h//.h#define single_interface(class) + (class *)shared##class;//.m// \ 代表下一行也属于宏// ##是分隔符#define single_implementation(class) \static c...
分类:
数据库 时间:
2014-06-27 14:15:13
阅读次数:
255
转载请注明出处:http://www.openext.org/2014/06/lxc-erro1#tar zxvf lxc-xxx.tar#./autogen#./configure –prefix=/usr/local/lxc#make#make install#lxc-lsthe error:#echo “/usr/local/lxc/lib” >> /etc/ld.so.conf#ldcon...
分类:
其他好文 时间:
2014-06-27 08:36:38
阅读次数:
156
Singleton.h#define singleton_h(name) + (instancetype)shared##name;#if __has_feature (objc_arc)#define singleton_m(name) \static id _instance; \\+ (id)...
分类:
编程语言 时间:
2014-06-26 16:39:23
阅读次数:
193
How to create QTP Shared Object RepositoryTo create a shared object repository by performing following steps1) Creating a Shared Object Repository2) A...
分类:
其他好文 时间:
2014-06-25 13:07:34
阅读次数:
220
如果遇到mysql-libs-5.1.73-3.el6_5.x86_64conflicts with file from package Percona-Server-server报错,有两种情况导致这个问题:
1)卸载操作系统预装的mysql-libs包
rpm -qa | grep -i libs | grep -i mysql
rpm -e mysql-libs
2)安装Percona-Server-shared-compat-5.5.33-rel31.1.566.rhel6.x86_64.rpm包(...
分类:
数据库 时间:
2014-06-24 18:23:49
阅读次数:
247
from:unix高级环境编程
unix/linux中共享内存是最高效的ipc方式。
有几种使用方式:
1)mmap /dev/zero设备:
fd = open("/dev/zero", O_RDWR);
area = mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
close(fd);
加入MAP_SHARE...
分类:
其他好文 时间:
2014-06-22 06:21:16
阅读次数:
215
主要是在研究访问共享内存会产生bank conflict时,自己产生的疑惑。对于这...
分类:
其他好文 时间:
2014-06-22 00:39:19
阅读次数:
477
$ sudo mount.cifs //windows-ip/shared /media/ -o user=username password=password
该命令挂载Windows下的shared共享目录到本地/media目录下.
Windows的用户名是username, 密码是password (作相应的修改)
这里的CIFS(Common Internet File Syste...
微软近期Open的职位:Title: Principal Dev ManagerLocation: BeijingThe R&D of Shared Data Platform at Search Technology Center Asia aims to build a unified data...
分类:
其他好文 时间:
2014-06-21 16:13:42
阅读次数:
241