Fwd: eXpOS Design - File Manager

88 views
Skip to first unread message

Murali Krishnan

unread,
Dec 15, 2020, 10:42:54 AM12/15/20
to xos-...@googlegroups.com, Muhammed Farseeen CK, ishan ghosh, xosdev...@googlegroups.com


---------- Forwarded message ---------
From: joshwin john.jose <joshwin_...@nitc.ac.in>
Date: Tue, Dec 15, 2020 at 4:33 PM
Subject: eXpOS Design - File Manager
To: <oslabee-...@googlegroups.com>


The roadmap and the documentation for the File Manager module states that the third input argument for BUFFERED READ should be the 'physical memory address' of the user variable to which the word is to be read into.

Problems may arise if the process gets swapped out-in while waiting for buffer/disk inside the file manager. During such a scenario, the word might be read into a wrong address if the memory pages for the user stack had changed during swapping.

Possible fix : Third input argument to BUFFERED READER can be the user's logical address. Address translation can be done inside BUFFERED READER just before writing the word into user space.

--
You received this message because you are subscribed to the Google Groups "OSLabEE-ECE-2020" group.
To unsubscribe from this group and stop receiving emails from it, send an email to oslabee-ece-20...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/oslabee-ece-2020/CAHNo0WFGPfwew7gRjKdE%3DvYA7aVKeHfMb9B5-XcMN3a%3DrL0Ujw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Akhil S

unread,
Dec 15, 2020, 11:34:37 PM12/15/20
to xos-...@googlegroups.com, Karthika Aravind, Murali Krishnan
Hi,

As far as I remember the reason for not doing this was that we had fixed in design that locked processes waiting in kernel mode will not be swapped out.

But yes, this seems like a sensible thing to do. I don't think such a change would cause any problems and it's safer to do it this way.

Akhil.

You received this message because you are subscribed to the Google Groups "XOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xos-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/xos-users/CAEp%2Bu%2BxN2z7LucQK_n3EpJTGw5UhAQxXzCDcH7guqMu3rfP_aw%40mail.gmail.com.


--
Regards,

Akhil S
Reply all
Reply to author
Forward
0 new messages