I've recently noticed that file descriptors in m5's syscall emulation
mode aren't reused where I think they may be able to. Process::open_fd
(called by openFunc) iterates over the fd_map array looking for a free
fd; however, closeFunc does not change the respective array entry when
the file is closed. If MAX_FD is large enough, this doesn't usually
cause any problems but I have run into one SPEC2000 benchmark (wupwise)
in which this isn't the case. Off the top of my head, adding
Process::close_fd which sets the array entry to -1 and calling it
from closeFunc ought to work.

James

-- 
[EMAIL PROTECTED]
http://www.cl.cam.ac.uk/~jrs53/


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
m5sim-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/m5sim-users

Reply via email to