[Gstreamer-bugs] [Bug 118582] New - Do not use mmap for filesrc plugin.

bugzilla-daemon at widget.gnome.org bugzilla-daemon at widget.gnome.org
Tue Jul 29 08:35:50 PDT 2003


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

http://bugzilla.gnome.org/show_bug.cgi?id=118582

Changed by ramon_garcia_f at terra.es.

--- shadow/118582	Tue Jul 29 11:35:50 2003
+++ shadow/118582.tmp.30536	Tue Jul 29 11:35:50 2003
@@ -0,0 +1,26 @@
+Bug#: 118582
+Product: GStreamer
+Version: HEAD CVS
+OS: Linux
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: enhancement
+Priority: Normal
+Component: gstreamer (core)
+AssignedTo: gstreamer-maint at bugzilla.gnome.org                            
+ReportedBy: ramon_garcia_f at terra.es               
+QAContact: gstreamer-maint at bugzilla.gnome.org
+TargetMilestone: HEAD
+URL: 
+Summary: Do not use mmap for filesrc plugin.
+
+Please do not use mmap() for reading a file.
+
+According to Linus, with mmap() the actual reading is fast, but settting up
+the mmap() is slow, because it invalidates the cache used by the processor
+for the translation of virtual addresses to physical ones. So mmap is a
+good thing if you call it once in the program, and the read many, many
+times. It is also good for sharing the memory overhead of reading a file
+between several processes. However, if one is creating and destroying mmaps
+all over the time, that is quite slow.




More information about the Gstreamer-bugs mailing list