Swap Space / Virtual Memory (VMM, paging RAM memory to a pagefile on the harddrive)?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Morien Offline
Senior Member
Posts: 185
Joined: Dec 2003
Reputation: 0
Question  Swap Space / Virtual Memory (VMM, paging RAM memory to a pagefile on the harddrive)?
Post: #1
hi,

would it be possible for the implementation of virtual memory (such as what odd, co-developer of surreal implemented into his emulator) ? would this solve any of the memory problems? (memory problems i've read about include asain mplayer subtitle fonts crashing the xbox due to lack of memory)
would this also increase the playback quality of some codecs or resolutions?

morien
find quote
Hullebulle Offline
Posting Freak
Posts: 1,901
Joined: Sep 2003
Reputation: 0
Post: #2
doubt it would help for fonts, but maybe for big subtitle files. we only need the next 2 lines (pics) in memory of the subfile.

read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
find quote
Gamester17 Offline
Team-XBMC Forum Moderator
Posts: 10,523
Joined: Sep 2003
Reputation: 10
Location: Sweden
Post: #3
yes the only point i see in virtual memory is for larger subtitle files (dvd vobsub subtitle files that is, as can be quite large).
(edit: correction, i meant "larger subtitle files", not larger subtitle fonts)

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Morien Offline
Senior Member
Posts: 185
Joined: Dec 2003
Reputation: 0
Post: #4
i thought there might be some use for it. even if all it did was prevent the xbox from running out of memory and locking up.
perhaps it would be worth it for the larger subtitle fonts? or the asain fonts, etc which are too big for the stock memory?

morien
find quote
Morien Offline
Senior Member
Posts: 185
Joined: Dec 2003
Reputation: 0
Post: #5
just to ressurect this.
i've been seeing quite a bit of discussion about memory issues in #xbmc as of late. would virtual memory have a use now?

morien
find quote
Asteron Offline
"Skilled" Python Coder
Posts: 928
Joined: Feb 2004
Reputation: 0
Post: #6
i know that 64mb is a pretty small amount of memory to use and xbmc is pretty smart about only allocating the memory it needs at a given moment.

i was wondering if anyone has thought about adding a virtual memory manager? i mean the xbox hd can easily spare a few hundred megs for a swap file. this would instantly solve alot of the memory problems people are having.

i will try to investigate more how feasible it is though once i have my env set up :-)

-ast
find quote
pike Offline
Project Manager
Posts: 4,831
Joined: Sep 2003
Reputation: 29
Location: Sweden
Post: #7
i think there's a reason why we dont have it, cant really recall exactly why at the moment though

also, lets not forget, you can forget about the golden silence with a swap disk on hd

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
romi Offline
Junior Member
Posts: 2
Joined: Aug 2006
Reputation: 0
Question  Swap Space / Virtual Memory (paging RAM memory to a pagefile on the harddrive)?
Post: #8
After reading these forums, the issue often arises that certain functions cannot be executed because of the lack of memory in the Xbox. This in my opinion makes the Xbox an ideal candidate for a swap partition. While a partition dedicated to swap would give a slightly better performance, a swap file on the E drive would work too.
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,228
Joined: Oct 2003
Reputation: 177
Post: #9
Code it up then.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
elupus Offline
Team-XBMC Developer
Posts: 3,799
Joined: Mar 2004
Reputation: 3
Post: #10
This could be used as a bases. it's a pagefile system for xbox. just stumbled on it Smile

http://stepmania.cvs.sourceforge.net/ste...iew=markup

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
Gamester17 Offline
Team-XBMC Forum Moderator
Posts: 10,523
Joined: Sep 2003
Reputation: 10
Location: Sweden
Wink   
Post: #11
I believe many emulators like MAMEoX, FBA-X/FBAxxx and Kawa-X, etc. also use some sort of harddrive swap-file paging to load and play large ROMS, are they are open source too

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
romi Offline
Junior Member
Posts: 2
Joined: Aug 2006
Reputation: 0
Post: #12
The thing that XBMC has going for it as far as swap space is that the program that manages the swap (or virtual memory as this is more Windows related then linux) is that this program can almost be static. What I mean by this is its not an operating system, you (the developers) have an advantage, practically being able to control what is being run, the programs are known (rss, ftpd, httpd). As far as the perl scripts go, the user controls those, so I see no need to add those to the virtual memory. I have a little experience in C/C++ and am learning C# so I think this might be a good project.
find quote
elupus Offline
Team-XBMC Developer
Posts: 3,799
Joined: Mar 2004
Reputation: 3
Post: #13
if virtual memory should be used, everything should use it. (can be done using XMemAlloc/Free... callbacks), otherwise it wouldn't be possible to page out much.

also it should be possible to force memory to never be paged, (windows has VirtualLock, same should be implemented here).

then to have on demand pageing, a structured exception handler must be added that will catch any of the general_page faults exceptions. (could be abit hard since we catch win32 errors at some places).

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
Gamester17 Offline
Team-XBMC Forum Moderator
Posts: 10,523
Joined: Sep 2003
Reputation: 10
Location: Sweden
Post: #14
isn't some kind of swap-file already used for large VobSub subtitle-files?

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
elupus Offline
Team-XBMC Developer
Posts: 3,799
Joined: Mar 2004
Reputation: 3
Post: #15
yea.. but this would remove the need for that, and simplify stuff.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
Post Reply