---
title: "drbd性能测试"
author: "jedy"
date: "2008-01-29T08:15:00Z"
tags: []
slug: "drbd"
draft: false
lastmod: "2008-01-29T08:15:00Z"
id: 304658
url: "https://jedy.iteye.com/blog/304658"
---

一直想做drbd的性能测试，但一直没有时间，其中等买千兆的网线还等了一个星期。拖拖拉拉弄了一个多月，终于有了结果。

使用的drbd版本是0.7.24。  
拷贝一个612M的目录，所需时间如下：

[fromto]() [normal]() [drbd]() **normal** 25s 33s **drbd** 28s 38s

拷贝10000个16K的文件

[fromto]() [normal]() [drbd]() **normal** 1.2s 3.5s **drbd** 2.2s 3.4s

使用load data向数据库中导入500000条数据，文件大小为44M，单位秒。

**innodb** **myisam** **drbd** 10.24 11.37 9.26 5.43 5.53 5.32 **normal** 9.24 9.90 8.27 5.24 5.22 5.27

可以看到时间多了10%左右。