[yocto] Some simple tests about pseudo performance

Peter Seebach peter.seebach at windriver.com
Mon Dec 13 10:29:33 PST 2010


On Thu, 09 Dec 2010 21:09:36 -0600, Xu, Dongxiao <dongxiao.xu at intel.com>  
wrote:

>                 fp = fopen("/tmp/12321.txt", "w");

fakeroot doesn't intercept or alter fopen().  It'd be better to test  
something
that is actually affected by fakeroot for a comparison.  :)

fakeroot only traps things like stat and chmod, pseudo traps file system  
opens
in general.  So I would expect a pretty huge difference in this case.

Keep in mind that pseudo's overhead is all around opens, closes, and things
like stat/chmod; reads and writes are unaffected.  Most real-world  
programs that
manipulate files spend a lot more time reading or writing files than  
opening
them, so a huge impact on file open time is relatively small on actual  
execution
time.

-s
-- 
Listen, get this. Nobody, with a good compiler, needs to be justified.



More information about the yocto mailing list