Welcome to the Free Software contributions diary of Loïc Dachary. Although the posts look like blog entries, they really are technical reports about the work done during the day. They are meant to be used as a reference by co-developers and managers.
A group of users give hard drives to the system administrator of the Ceph cluster. In exchange, each of them get credentials to access a dedicated pool of a given size from the Ceph cluster.
A small patch series (1, 2, 3) is worked on in the wip-key-inject-unless topic branch.
When running git review –yes, each commit is dispatched to the review designated by the Change-Id: of the message.
A snapshot of an Essex OpenStack instance contains an AMI ext3 file system. It is rsync’ed to a partitioned volume in the Havana cluster. After installing grub from chroot, a new instance can be booted from the volume.
Ceph uses GF-Complete stable branch (v1). Modifications required by Ceph were proposed to the master branch. While waiting for the corresponding pull request to be reviewed, a temporary branch (v1-ceph) was created in the Ceph name space for immediate use. The changes have been accepted in master, they are to be backported to v1
Posted in emacs, git, magit
The jerasure v2 branch is merged into the v2-ceph branch.
If you’re in Atlanta Sunday 11th, may 2014 evening, for the OpenStack summit or any other reason, join us to celebrate the OpenStack Icehouse release and the Ceph Firefly release. There will be both OpenStack and Ceph developers present and no presentations planned : it’s 100% informal
Registration is here : Celebrate Firefly and Icehouse meetup page.
The jerasure library is the default erasure code plugin of Ceph. The gf-complete companion library supports SSE optimizations at compile time, when the compiler provides them (-msse4.2 etc.). The jerasure (and gf-complete with it) plugin is compiled multiple times with various levels of SSE features:
- jerasure_sse4 uses SSE4.2, SSE4.1, SSSE3, SSE3, SSE2, SSE
- jerasure_sse3 uses SSSE3, SSE3, SSE2, SSE
- jerasure_generic uses no SSE instructions
When an OSD loads the jerasure plugin, the CPU features are probed and the appropriate plugin is selected depending on their availability.
The gf-complete source code is cleanly divided into functions that take advantage of specific SSE features. It should be easy to use the ifunc attribute to semi-manually select each function individually, at runtime and without performance penalty (because the choice is made the first time the function is called and recorded for later calls). With such a fine grain selection, there would be no need to compile three plugins because each function would be compiled with exactly the set of flag it needs.
The Ceph erasure code plugin must run on Intel CPU that have no SSE4.2 support. A Qemu is run without SSE4.2 support:
qemu-system-x86_64 -machine accel=kvm:tcg -m 2048 \
-drive file=server.img -boot c \
-display sdl \
-net nic -net user,hostfwd=tcp::2222-:22 \
-fsdev local,security_model=passthrough,id=fsdev0,path=~/ceph \
The qemu CPU has no SSE4.2 although the native CPU has it:
$ grep sse4.2 /proc/cpuinfo | wc -l
$ ssh -p 2222 email@example.com grep sse4.2 /proc/cpuinfo | wc -l
The local development directory is a Plan 9 folder shared over Virtio mounted inside the VM:
sudo mount -t 9p -o trans=virtio,version=9p2000.L hostshare /home/loic/ceph
and the functional test is run to assert that encoding and decoding an object:
$ cd /home/loic/ceph/src
[----------] Global test environment tear-down
[==========] 16 tests from 8 test cases ran. (30 ms total)
[ PASSED ] 16 tests.
$ rbd create --size $((1024 * 1024 * 1024 * 1024)) tiny
$ rbd info tiny
rbd image 'tiny':
size 1024 PB in 274877906944 objects
order 22 (4096 kB objects)
Note: rbd rm tiny will take a long time.
Gource is run on the Ceph git repository for each of the 192 developers who contributed to its development over the past six years. Their footprint is the last image of a video clip created from all the commits they authored.
Posted in ceph, git, gource