|
Steve Richter asked: hola, What I think I know: The mmap( ) function is used to map a stream file into memory. The func rcvs an offset into the file and the length of bytes to be mapped. It returns a ptr to the start of the mapped memory. char* pData ; dword nNbrBytesToMap = 17Meg ; pData = mmap( NULL, nNbrBytesToMap, , , FileHandle, OfsIntoFile ) ; The ptr can then be used to write to the stream file: pData[17,000,000] = 'x' ; /* copies 'x' to offset 17 million into the stream file */ Multiple jobs can map the same stream file at the same time. The end result being a perm shared space that exceeds the 16 mem space size limit. My questions: How is mapped memory implemented? What chgs to the architecture, virtual memory manager were needed to be able to do this? Are teraspaces implemented the same way? Just asking, Steve Richter Try the following link: http://www-1.ibm.com/servers/eserver/iseries/beyondtech/unix.htm (titled: A Unix-like environment) and the follow-on link: http://www-1.ibm.com/servers/eserver/iseries/beyondtech/teraspace.htm (titled: Teraspace storage) which ought to answer many of the issues of the last couple of days. I found these via Google. Larry W. Loen - Senior Java and iSeries Performance Analyst Dept HP4, Rochester MN speaking on his own +--- | This is the MI Programmers Mailing List! | To submit a new message, send your mail to MI400@midrange.com. | To subscribe to this list send email to MI400-SUB@midrange.com. | To unsubscribe from this list send email to MI400-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: dr2@cssas400.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.