Loading…

LinuxCon Japan is the premiere Linux conference in Asia that brings together a unique blend of core developers, administrators, users, community managers and industry experts.

CloudOpen Japan is a conference celebrating and exploring the open source projects, technologies and companies who make up the cloud. It’s built on a belief that open works: for users, for industry and for technology.

Register Now

Friday, May 31 • 11:00am - 11:50am
Simple and Efficent Way to Get the Last Log Using MMAP - Tetsuyuki Kobayashi, Kyoto Microcomputer

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

Logging is very important at troubleshooting. However, it causes seriously slowing down when logging is so frequently and output device speed is limited. To avoid to slow down you can put logs to ring buffer on memory and flush it periodically. But if the target process suddenly abort by segmentation fault or some reason, the last log remaining the ring buffer may be lost. The last log is very important in troubleshooting.

My simple idea is to use file associated shared memory for the ring buffer. The key is to utilize mmap system call. In this session how the kernel handles mmap'ed memory is described. This talk targets developers who want to resolve problems in user space by logging. Knowledge in kernel inside is not required, but knowledge in system calls will be helpful.


Speakers
avatar for Tetsuyuki Kobayashi

Tetsuyuki Kobayashi

Kyoto Microcomputer
Tetsuyuki Kobayashi is 20+ years experienced engineer working on embedded system development. Now he belongs Kyoto Microcomputer, which is Japanese development tool vendor. He is working in gcc, linux, QEMU, Android and so on. Especially, he studies Android source code since it released... Read More →


Friday May 31, 2013 11:00am - 11:50am JST
Mars

Attendees (0)