FreeBSD: Setup properly small kimsufi (ovh) server (non-zfs) on FreeBSD 10.1 (disk setup ufs, vanilla freebsd, ipv6)

This tutorial is made for OVH Kimsufi server, the small one, where you can’t setup ZFS. They are deliver with an awful partition scheme by default and a custom kernel that break after the first freebsd-update. And of course because of the awful partition, it is almost impossible to repair after reboot. So I made … Continue reading FreeBSD: Setup properly small kimsufi (ovh) server (non-zfs) on FreeBSD 10.1 (disk setup ufs, vanilla freebsd, ipv6)

FreeBSD: Apache Traffic Server in a jail

Apache Traffic Server use special socket to initialize the cluster. You will need this to make it work : In ezjails, add this in the configuration file (/usr/local/etc/ezjail/YOURJAIL)

If you use directly jail, add the “allow.socket_af=1″. The traffic_manager and traffic_cop will no be able to start, because they cannot test the ethernet card you … Continue reading FreeBSD: Apache Traffic Server in a jail

Perl Dist::Zilla hidden feature : minimum bundle version require !

Dist::Zilla is a great tools to create perl distribution. You can also create PluginBundle that contain everything you usually use in your package. You will usually add and remove stuff in your PluginBundle, and you want that people who help you develop and release your perl distribution to use the good version of your bundle. … Continue reading Perl Dist::Zilla hidden feature : minimum bundle version require !

Perl Memory::Stats – Get RSS memory reporting on multiple platforms

It is often nice to be able to dump the current memory usage of a part of your process. I’m working on Mac OSX, and I’m frustrating when a perl module only works on Linux, because it read file like ‘/proc’ or stuff like that. Thanks to IRC users, I have discover Proc::ProcessTable, and then … Continue reading Perl Memory::Stats – Get RSS memory reporting on multiple platforms

Perl IO::Socket server socket strange behaviour

I’m trying to create a server that listen on a port and that never answer nor accept anything. Here my small code :

To test it, I run the server :

And then I try the socket timeout with for instance a redis connection with a timeout :

The first time I … Continue reading Perl IO::Socket server socket strange behaviour

Perl Benchmark Serializer: JSON vs Sereal vs Data::MessagePack vs CBOR

I’m working on optimization of computing and I need a fast real time message packer for storing data in Redis at light speed. So I have try several serializer, like JSON, Sereal and Data::MessagePack. And I would like to share the result. First of all, a tiny word about the different serializer. JSON is a … Continue reading Perl Benchmark Serializer: JSON vs Sereal vs Data::MessagePack vs CBOR

My Perl and Javascript blog !