Tripti Joshi (Editor)

Gamin

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
4
/
10
1
Votes
Alchetron
4
1 Ratings
100
90
80
70
60
50
41
30
20
10
Rate This

Rate This

Zoufris maracas un gamin


Gamin is a monitoring system for files and directories that independently implements a subset of FAM, the File Alteration Monitor. Running as a service, it allows for the detection of modifications to a file or directory. gam_server functions as a daemon for Gamin.

Contents

E tre un gamin tim


Origins

The word gamin in French (where it also has a female form gamine) refers to a boy. The Gamin project built on an earlier project called Marmot (which in French means "child" or "brat").

How it works

Under Linux, Gamin uses inotify or dnotify to monitor filesystem activity. Under FreeBSD, Gamin uses kqueue/kevent as the native FreeBSD kernel event notification mechanism, but in this case kqueue has one major drawback as compared to inotify: inotify is the filename-based monitoring facility and kqueue uses file descriptors for identification of monitored files, so, under FreeBSD, gam_server has to open each file in the monitored directory. This can be an issue when monitoring directories with many files stored, because the system could easily reach its kernel limits on maximum file descriptor count (kern.maxfiles and kern.maxfilesperproc).

References

Gamin Wikipedia