forked from hornetq/hornetq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
84 lines (41 loc) · 2.24 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
This is a simple tutorial on compiling libHornetQLibAIO.so
DEPENDENCIES
Make sure you install these packages:
- G++ (yum install gcc-c++ or aptitude install g++)
- Gcc (yum insall gcc or aptitude install gcc)
- autotools-dev (including libtool, automake, autoconf) (yum install autoconf libtool or aptitude install autotools-dev autoconf libtool)
- Make (yum install make or aptitude install make)
- libaio (0.3.106) (yum install libaio or aptitude install libaio)
- libaio-dev (yum install libaio-devel or aptitude install libaio-dev)
- JDK (full JDK)
LIBAIO INFORMATION
libaio is part of the kernel project. The library makes system calls on the kernel layer.
This is the project information:
Git Repository: git://git.kernel.org/pub/scm/libs/libaio/libaio.git
Mailing List: [email protected]
STEPS TO BUILD
1. Make sure you have JAVA_HOME defined, and pointing to the root of your JDK:
Example:
$> export JAVA_HOME=/usr/share/jdk1.5.0_13
2. Call bootstrap. Bootstrap will call all the initial scripts you need
$> ./bootstrap
if you are missing any dependencies, autoconf would tell you what you're missing.
COMPILED FILE
The produced file will be under ./src/.libs/libHornetQLibAIO.so
PERF-DISK
There is a script on this directory called perf-disk. This script will tell you how many bytes per second your disk is capable of.
If you interrupt this script, you will see a file (/tmp/foo.dat) created on your disk, which is used to measure the performance.
DISKTEST
There is also an executable that performs direct libaio write emulating the same behaviour you should see on the Journal.
To verify what is your maximum disk throughput execute disktest
Usage: disktest<Platform> <directory> <number-of-files>
example:
chmod +x disktest
./disktest32 /tmp 20
At the end of the execution you will see something like:
Total time on write files = 198, Bytes/millisecond = 105916
disktest is also compiled by our build scripts. disktest.cpp is also a sample of how to make calls into libaio.
DOCUMENTATION
The User Manual, chapter 38 (Libaio Native Libraries) will provide more details about our native libraries on libaio.
README IS A REQUIRED FILE
This file exists here as required by autoconf, or else we would have a compilation error.