- 博客(60)
- 资源 (3)
- 收藏
- 关注
转载 (转)offsetof与container_of宏[总结]
http://www.cnblogs.com/woainilsr/p/3472409.htmlhttp://www.yiibai.com/c_standard_library/c_macro_offsetof.html1、前言 今天在看代码时,遇到offsetof和container_of两个宏,觉得很有意思,功能很强大。offsetof是用来判断结构
2016-06-23 17:03:40
367
转载 SSDAlloc:用 SSD 扩展内存
转载自: http://www.tinylab.org/ssdalloc-using-ssd-for-expandable-memory/ http://research.microsoft.com/pubs/173969/Anirudh_Badam_Proquest_Thesis.pdf http://ssdalloc.cs.princeton.edu/technology.ht
2015-12-01 16:25:43
1028
转载 How to extend the root partition in LVM
https://rbgeek.wordpress.com/2013/01/27/how-to-extend-the-root-partition-in-lvm/ In this tutorial, I am using the CentOS6(but also applicable on other Linux distro) that has ext4 partitionlv_roo
2015-09-29 16:56:47
663
原创 Performance Comparison Studies With Real-Life Scenarios in an Experimental Data Taking Context Lever
https://indico.cern.ch/event/304944/session/3/contribution/402/attachments/578582/796733/CHEP2015_Swift_Ceph_v8.pdfPerformance Comparison Studies With Real-Life Scenarios in an Experimental Data Tak
2015-09-18 17:01:19
606
转载 Benchmarking Performance of OpenStack Swift Configurations
https://www.mirantis.com/blog/openstack-swift-configurations-performance-benchmarking/If you’ve seen OpenStack Swift, you already know it’s an extremely dynamic and flexible project with many on
2015-09-17 21:26:05
651
转载 Ceph vs Swift – An Architect’s Perspective
https://www.mirantis.com/blog/ceph-vs-swift-architects-perspective/http://ceph.com/http://www.gluster.org/download/ When engineers talk about storage and Ceph vsSwift, they usually agree t
2015-09-10 15:44:13
649
原创 Redis管理监控软件
:Real time dashboard for redis http://www.nkrode.com/article/real-time-dashboard-for-redis Redis Desktop Manager http://redisdesktop.com/download redis-commanderRedis man
2015-09-08 15:39:37
398
原创 redis-3.0.3集群功能试用
redis-3.2.1.gem安装包位置:https://pkgs.fedoraproject.org/repo/pkgs/rubygem-redis/redis-3.2.1.gem/md5/32ffda73c0df6d2be981177ac9a3bc9b/https://rubygems.org/gems/redis sudo wget http://download.re
2015-09-07 13:23:55
464
转载 性能调优攻略
http://coolshell.cn/articles/7490.html http://zhouanya.blog.51cto.com/4944792/1386313 一、系统性能定义让我们先来说说如何什么是系统性能。这个定义非常关键,如果我们不清楚什么是系统性能,那么我们将无法定位之。我见过很多朋友会觉得这很容易,但是仔细一问,其实他们并没有一个比较系统的方法,所以,在这
2015-08-22 17:49:35
345
转载 能测试的主要概念和计算公式
http://www.ha97.com/5095.html PS:下面是性能测试的主要概念和计算公式,记录下:一.系统吞度量要素:一个系统的吞度量(承压能力)与request对CPU的消耗、外部接口、IO等等紧密关联。单个reqeust 对CPU消耗越高,外部系统接口、IO影响速度越慢,系统吞吐能力越低,反之越高。系统吞吐量几个重要参数:QPS(TPS)、并发数、响应时间
2015-08-22 14:14:51
489
转载 TPS和事务响应时间的关系【转】
例子:一个高速路有10个入口,每个入口每秒钟只能进1辆车1、请问1秒钟最多能进几辆车?TPS=102、每辆车需要多长时间进行响应?reponse time = 13、改成20辆车,每秒能进几辆?每辆车的响应时间是多长?TPS = 10,reponse time = 14、入口扩展到20个,每秒能进几辆?每辆车的响应时间是多长?TPS
2015-08-22 14:04:18
1773
转载 Using mysql as Nosql ------------- Mysql HandlerSockets使用
HandlerSocket是同Percona Server 5.5一同发行的,所以你不用自己下载源码再编译了:1. mysql> install plugin handlersocket soname 'handlersocket.so' 2. cp /usr/share/mysql/my-large.cnf /etc/mysql/my.cnf 3. vim /etc/mysql/
2015-08-19 15:54:26
432
转载 Memcached深度分析
http://www.cnblogs.com/luluping/archive/2009/01/14/1375456.html http://www.zhihu.com/question/21813579 Memcached是danga.com(运营LiveJournal的技术团队)开发的一套分布式内存对象缓存系统,用于在动态系统中减少数据库负载,提升性能。关于这个东西,相信很多人
2015-08-14 17:50:02
270
原创 memcached相关技术网站
火丁笔记 http://huoding.com/ http://blog.charlee.li/memcached-001/http://blog.charlee.li/memcached-002/http://blog.charlee.li/memcached-003/http://blog.charlee.li/memcached-005/ twitter me
2015-08-12 16:46:59
680
转载 memcached并发CAS模式
http://hudeyong926.iteye.com/blog/1463992http://blog.163.com/asd_wll/blog/static/210310402013010118260/ 1、启动Memcache 常用参数-p 设置TCP端口号(默认不设置为: 11211)-U UDP监听端口(默认: 11211, 0 时关闭) -l 绑定地址(默
2015-08-07 15:34:30
273
原创 pylibmc客户端pool使用
http://sendapatch.se/projects/pylibmc/pooling.html#thread-mapped-pooling #!/usr/bin/env python#import memcacheimport pylibmcclass OSDClient(): """ OSD Client Operation""" def __ini
2015-07-29 18:33:57
496
转载 qperf测量网络带宽和延迟
转载自Erlang非业余研究,原文地址:http://blog.yufeng.info/archives/2234 我们在做网络服务器的时候,通常会很关心网络的带宽和延迟。因为我们的很多协议都是request-reponse协议,延迟决定了最大的QPS,而带宽决定了最大的负荷。 通常我们知道自己的网卡是什么型号,交换机什么型号,主机之间的物理距离是多少,理论上是知道带宽和延迟是多少的。但是
2015-07-28 17:43:20
783
转载 一个简单的python连接池,以及DBUtil.PooledDB的使用
http://www.dbafree.net/?p=1125 的一个很简单的连接池,基于线程安全的queue来实现,分享下:#!/home/oracle/dbapython/bin/python# -*- coding: utf-8 -*-#Author: & dbafree import cx_Oracle import M
2015-07-28 17:30:20
2329
转载 python 之queue
http://www.dbafree.net/?p=1125 python原生的list,dict等,都是not thread safe的。而queue,是线程安全的。Queue.Queue类即是一个队列的同步实现。今天有个需求,典型的“生产者消费者问题”,刚好可以用到queue,挺好用。python queue模块有三种队列:1、python queue模块的FIFO队列先进先出
2015-07-28 17:26:26
455
转载 查看mysql正在执行的SQL语句,使用profile分析SQL执行状态
http://qq85609655.iteye.com/blog/2113960 1)我们先通过status命令查看Mysql运行状态mysql> status;--------------mysql Ver 14.14 Distrib 5.1.73, for redhat-linux-gnu (x86_64) using readline 5.1Connection
2015-07-28 11:09:11
3214
原创 vim多行编辑------自动缩进
ctrl+v可进入列模式,选择多列就可进行编辑。按v选择多行,按 就可以自动缩进。在某行上按两次等号(==)变可以自动缩进。 n==从该行开始下面的n行一起做自动缩进。gg=G对真个文件进行自动缩进和排版,结合set shiftwidth=4,非常有用的自动缩进。
2015-07-24 15:40:27
496
转载 安装 pylibmc(Memcached的python客户端)
转载自:http://blog.chinaunix.net/uid-20548989-id-1667373.html 0.目标安装 pylibmc http://pypi.python.org/packages/source/p/pylibmc/pylibmc-1.1.1.tar.gz1.环境 Ubuntu Server 10.04 已经安装了 gcc, pytho
2015-07-15 20:32:28
872
转载 g++ -L 和-l && -I参数
转载自 http://www.cnblogs.com/cy163/archive/2009/03/12/1409434.html 1。gcc包含的c/c++编译器gcc,cc,c++,g++,gcc和cc是一样的,c++和g++是一样的,(没有看太明白前面这半句是什么意思:))一般c程序就用gcc编译,c++程序就用g++编译2。gcc的基本用法gcc test.c
2015-07-15 20:29:27
2963
1
转载 eventlet
转载自:http://blog.csdn.net/xiangmin2587/article/details/8182775 1. 首先说一下什么是协程协同程序与线程差不多,也就是一条执行序列,拥有自己独立的栈,局部变量和指令指针,同时又与其它协同程序共享全局变量和其它大部分东西。线程与协同程序的主要区别在于,一个具有多线程的程序可以同时运行几个线程,而协同程序却需要彼此协作地运行。就是
2015-06-01 16:02:54
1342
原创 mysql python 访问代码
import MySQLdbconn= MySQLdb.connect(host='localhost',port = 3306,user='root',passwd='root',db ='cloudflash_db',)cur = conn.cursor()#a = cur.execute("select Host,User,Password from user;")#info
2015-05-29 16:55:11
274
转载 TCP流重组的研究
转载自:http://ilovedouzhou.iteye.com/blog/1626183存储tcp分段的数据结构:一个二维链表,我把它叫作重装表。具有相同socket对(源ip地址、目的ip地址、源端口号、目的端口号)的 tcp数据包放在一个横向的链表里,该链表的头节点只保存了源ip地址、目的ip地址、源端口号、目的端口号这些信息。然后介绍重装TCP数据段的方法:1
2015-05-25 17:41:02
5513
2
转载 Python PriorityQueue
Python PriorityQueue 使用方法https://www.daniweb.com/software-development/python/threads/298434/python-priority-queue
2015-05-13 18:45:56
2565
转载 python中的argparse
转载自:http://songpengfei.iteye.com/blog/1440158http://www.cnblogs.com/jianboqi/archive/2013/01/10/2854726.htmlList pop 用法: http://www.yiibai.com/python/list_pop.htmldic pop 用法:http://www.cnbl
2015-04-17 17:32:03
330
原创 Python多线程thread与threading实现
import time import threading def timer(no, interval): cnt = 0 while cnt print ('Thread:(%d) Time:%s\n'%(no, time.ctime())) time.sleep(interval) cnt+=1
2015-04-16 11:48:23
459
转载 深刻理解Linux进程间通信(IPC)
http://www.cnblogs.com/ThinkingWorld/articles/1861739.html 深刻理解Linux进程间通信(IPC)0. 序1. 管道1.1. 管道概述及相关API应用1.2. 有名管道概述及相关API应用1.3. 小结1.4. 参考资料2. 信号(上)2.1. 信号及信号来源2.2. 信号的种类2.3. 进程
2015-04-15 16:42:48
456
转载 小谈rsync
转载自:http://servershuji.blog.51cto.com/1283121/580628/ 今天给大家介绍一下Rsync的使用。 Rsync--Remote Sync(远程同步)是一个具有快速同步文件和传输文件的工具,主要用于快速,安全,高效的数据备份。此工具具有传输新增或更该过的文件的特性,而且支持数据压缩,因此提高了文件传输和同步的速度。配置用于Rsync同步的远程主机
2015-04-14 20:51:23
425
原创 rsync使用方法总结
rsync配置:/etc/rsyncd.confuid = osdgid = osdlog file = /var/log/rsyncd.logpid file = /var/run/rsyncd.pid[account]max connections = 2path = /srv/accountread only = falselock file = /var
2015-04-14 20:48:02
1486
转载 扯谈网络编程之Tcp SYN flood洪水攻击
转载自:http://www.2cto.com/Article/201405/300529.html简介TCP协议要经过三次握手才能建立连接:(from wiki)于是出现了对于握手过程进行的攻击。攻击者发送大量的FIN包,服务器回应(SYN+ACK)包,但是攻击者不回应ACK包,这样的话,服务器不知道(SYN+ACK)是否发送成功,默认情况下会重试5次(tcp_syn_ret
2015-04-14 17:13:50
540
原创 SWIFT Ring原理
OpenStack Swift Ring When people talk about OpenStack Swift, we often hear the word Ring. This is because the Ring is a central piece in how Swift is working. But whatis this thing everyone's ta
2015-04-14 14:41:20
780
原创 Openstack swift常见问题
a) 如何查看.data文件的xattr属性root@KVM-21:/mnt/sdb1/1/node/sdb1/objects/857/483/d666fd8b3ff3177e8aaa3790323ad483# lltotal 8drwxr-xr-x 2 root root 34 11月 14 08:55 ./drwxr-xr-x 3 root root 45
2015-04-14 14:20:25
2168
原创 kinetic client之client
# Copyright (C) 2014 Seagate Technology.## This library is free software; you can redistribute it and/or# modify it under the terms of the GNU Lesser General Public# License as published by th
2015-03-27 17:41:46
297
原创 kineti client 之baseclient
# Copyright (C) 2014 Seagate Technology.## This library is free software; you can redistribute it and/or# modify it under the terms of the GNU Lesser General Public# License as published by th
2015-03-27 17:40:48
380
原创 kinetic client 之BaseAsync
# Copyright (C) 2014 Seagate Technology.## This library is free software; you can redistribute it and/or# modify it under the terms of the GNU Lesser General Public# License as published by th
2015-03-27 17:39:32
292
原创 kinetic client 之asyncclient.py
# Copyright (C) 2014 Seagate Technology.## This library is free software; you can redistribute it and/or# modify it under the terms of the GNU Lesser General Public# License as published by th
2015-03-27 17:37:41
340
转载 OpenStack Swift 云存储技术详解
转载自:http://www.educity.cn/net/1617873.htmlSwift云存储技术详解:综述与概念 OpenStack Object Storage (Swift) 是用来创建冗余的、可扩展的对象存储(引擎)的开源软件。通过阅读Swift的技术文档,我们可以理解其中的设计的原理和实现的方法 。 Swift项目已经进展有两年了,对外开放也一年有余,在国外的社区你
2015-03-27 12:43:13
947
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人