First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 43027
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: foser (RETIRED) <foser@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Vaclav Slavik <vslavik@fastmail.fm>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
fam-2.7.0.ebuild.patch patch for the ebuild patch Vaclav Slavik 2004-02-26 13:39 0000 566 bytes Details | Diff
fam-2.7.0-dnotify.patch fam-2.7.0-dnotify.patch patch Vaclav Slavik 2004-02-26 13:40 0000 25.80 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 43027 depends on: Show dependency tree
Bug 43027 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-02-26 13:39 0000
The FAM library can take advantage of Linux's dnotify feature to avoid polling
files for changes. It's not part of standard fam distribution, you have to
apply a patch. This patch was removed from app-admin/fam in 2.7.0 (2.6.10-r1
had it). There's no mention of it in ChangeLog other than "New release,
obsoletes most of the patches", so maybe it was a mistake? Anyway, this patch
is pretty important (it improves responsibility), so I took updated patch for
2.7.0 from Debian package and modified the ebuild to apply it. Patches
attached, tested & working.

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Vaclav Slavik 2004-02-26 13:39:43 0000 -------
Created an attachment (id=26426) [details]
patch for  the ebuild

------- Comment #2 From Vaclav Slavik 2004-02-26 13:40:16 0000 -------
Created an attachment (id=26427) [details]
fam-2.7.0-dnotify.patch

------- Comment #3 From Spider (RETIRED) 2004-02-26 13:49:15 0000 -------
Yes, thats correct. However, with DNotify there is another issue in descriptor
leakage for removable devices.  By not providing the DNotify event tracker in
fam there is no longer an issue with this, which is of more importance than the
slight boost in responsiveness.

------- Comment #4 From Vaclav Slavik 2004-02-26 14:11:51 0000 -------
Are you sure this is still true for 2.7.0 and latest (i.e. this one, Debian's)
version of dnotify patch? From Debian's changelog
(http://packages.debian.org/changelogs/pool/main/f/fam/fam_2.7.0-5/changelog):
"""
fam (2.7.0-1) experimental; urgency=low

  * New upstream release 
    (closes: Bug#224738):
    - should fix problems with unmounting filesystems with
      monitored files 
      (closes: Bug#225636)
"""
Comment #27 at http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=106936 seems
to indicate DNotify patch was fixed, too (it's dated 2004-02-04).

> which is of more importance than the slight boost in responsiveness.

As for "slight", I noticed this because KGhostview's Watch File feature started
to react considerably slower (as in immediately vs. something that felt like
1-2 seconds later) after I set up famd.

------- Comment #5 From foser (RETIRED) 2004-03-14 14:22:20 0000 -------
ok re-added dnotify support in fam-2.7.0-r1

I indeed couldn't reproduce the old locking problems, but that might also have todo with fixes in other packages. We'll just have to see how it goes. This patch seems quite a bit altered from the original.

about 'slight' , fam without monitor polls once p.sec afaik vs almost immediatly now. It looks better, but it doesn't matter that much.

------- Comment #6 From jack_mort 2004-04-21 04:20:01 0000 -------
Here, with fam-2.7.0-r1, I've still the problem with removable devices...

------- Comment #7 From foser (RETIRED) 2004-04-21 15:32:45 0000 -------
describe the exact problem & how it is reproducable . I can't reproduce the old
problem.

------- Comment #8 From jack_mort 2004-04-22 00:44:22 0000 -------
Well, it's quite simple :

In nautilus :
- start famd...
- mount a floppy/usbkey
- access it with nautilus to copy or read some files on it
- try to unmount the floppy/usbkey

Nautilus complains the device is busy... Try in a term. Same thing. With a lsof, you see that the mount point is beeing monitored by famd... Restart or stop famd : you can unmount.

First Last Prev Next    No search results available      Search page      Enter new bug