自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 资源 (1)
  • 收藏
  • 关注

转载 进程实际内存占用: 私有驻留内存数(Private RSS)介绍

先介绍几个基本概念:SIZE: 进程使用的地址空间, 如果进程映射了100M的内存, 进程的地址空间将报告为100M内存. 事实上, 这个大小不是一个程序实际使用的内存数.RSS: “Resident Set Size”, 实际驻留”在内存中”的内存数. 不包括已经交换出去的代码. 举一个例子: 如果你有一个程序使用了100K内存, 操作系统交换出40K内存, 那么RSS为60K. RSS

2011-11-27 13:52:19 2645

原创 Redis zmalloc

#运算符用于创建字符串,#运算符后面应该跟一个形参(中间可以有空格或Tab),例如:#define STR(s) # sSTR(hello world)用cpp命令预处理之后是"hello␣world",自动用"号把实参括起来成为一个字符串,并且实参中的连续多个空白字符被替换成一个空格。再比如:#define STR(s) #sfputs(STR(strncmp("ab\"c

2011-11-25 21:41:53 2796

转载 Redis dict

dictHashKey最多有LONG_MAX个桶。在redis中最基本的三个数据结构是dict 、adlist和sds,其中dict是redis中最重要的数据结构了,其key-value的映射关系就是通过dict来实现的,dict的内部实现是hash table,这个哈希表的大小是动态增加或减少的,主要是依据哈希表中的元素个数;同时哈希表适用链接法来解决哈希冲突的,具体实现在dic

2011-11-24 23:17:27 1100

转载 #define

如果你想在宏中包含多个语句,可能会这样写:#define do_something() \do_a(); \do_b();\ 表示强制换行,而换行后的内容与前一行的内容编译器仍把它看作是同一行.#define后面定义的内容比须在同一行,而有时是为了让程序便于阅读,从中间进行换行,如果没有符号'\',则我们的换行表示 #define的结束,这也是为什么你去掉后会报错的原因.如果在这里加了

2011-11-24 23:04:14 532

原创 Redis 内存相关

Can I backup a Redis DB while the server is working?RDB and AOF files are compatible between 32 bit and 64 bit instances (and between little and big endian of course,文件格式Redis会自己统一) so you c

2011-11-21 23:15:37 1265

原创 Redis Internals (strings)

Redis dynamic strings (all strings)String is the basic building block of Redis types.Redis is a key-value store. All Redis keys are strings and its also the simplest value type.Lists, sets

2011-11-21 15:35:42 1178

原创 Redis 存储方案

RedisRedisPersistence(持久化存储)Redis提供了不同的持久化方案TheRDB(方案):定期对内存中的数据进行快照,永久存储快照。theAOF(方案):每个修改操作记录在日志中,服务器重启时,根据日志重新构造数据集。禁止持久化存储,数据全部存在内存中。AOF与RDB方案可以结合在一起。2、分布式控制目

2011-11-21 14:40:36 9814 1

转载 Java静态内部类(嵌套类)

Java静态内部类(嵌套类)博客分类: JavaJavaJ#Java代码  转自:http://erbo2008.iteye.com/blog/422334如果你不需要内部类对象与其外围类对象之间有联系,那你可以将内部类声明为static。这通常称为嵌套类(nested class)。想要理解static应用于内部类时的含义,

2011-11-21 14:29:22 788

转载 Membase Key-Concept

Membase Server is a high-performance, highly-available, distributed, key-value database and caching system that is 100% compatible with memcached. It is optimized for storing the data behind highly in

2011-11-20 21:42:36 805

原创 Redis 简介

What Redis means actually?Redis means two things:It means REmote DIctionary ServerIt is a joke on the word RedistributeRedis is an open source, advanced key-value store. It is ofte

2011-11-17 17:18:46 953

转载 REST

http://developer.51cto.com/art/200908/141825.htm什么是REST?REST (REpresentation State Transfer) 描述了一个架构样式的网络系统,比如 web 应用程序。它首次出现在 2000 年 Roy Fielding 的博士论文中,他是 HTTP 规范的主要编写者之一。REST 指的是一组架构约束条件和

2011-11-16 16:16:52 418

原创 Membase

The simple, fast, elastic(伸缩的) NoSQL database.Membase ServerMembase Server is the lowest latency, highest throughput NoSQLdatabase technology on the market. When your application nee

2011-11-16 16:13:58 647

转载 MySql-Proxy Introduction

MySQL Proxy OverviewThe Proxy ships(运输)with an embedded Lua interpreter. Using Lua, you can definewhat to do witha query or a result set before the Proxy passes them along.Figure 1. MySQL

2011-11-03 17:04:23 1344

原创 The ultimate MySQL high availability solution(压缩版)

The ultimate MySQL high availability solutionclustering suites(使用集群的工具包来实现HA) is just categorically the wrong approach to database high-availability. 集群本身还是有用的Clustering suites = F

2011-11-02 21:13:40 1420

转载 The ultimate MySQL high availability solution

The ultimate MySQL high availability solutionSubmitted by hingo on Sun, 2011-07-24 00:07Galera MySQLA while ago Baron blogged about his utter dislike for MMM, a framework

2011-11-02 19:16:38 1382

make的官方指南(中文版)

make的官方指南(中文版) 希望能对大家有帮助:)

2011-03-31

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除