examples: rewrite graphite

without using SIGALRM.
and add not using mmap