Re: Is swap really needed when RAM's aplenty

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael Hennebry <hennebry <at> web.cs.ndsu.nodak.edu> writes:

> 
> > If I remember my Kerningham-Ritchie correctly, the answer is yes, since
> > C relies on pointer arithmetic to refer to the elements of the array.
> > The "fred" and "greg" variables are pointers to the beginning of the
> > corresponding memory area, and referring fred[i] goes to the start of
> > the array at fred, and then goes i elements forward to end up with the
> > wanted element.
> 
> That is contiguous in terms of virtual memory.
> Adjacent virtual addresses do not have to have adjacent physical addresses.
> 
Hi,
http://www.patentstorm.us/patents/6986016/description.html
...
For application (that is, user-mode) programming, standard APIs provided for
memory allocation are malloc ( ) and realloc ( ). In both cases, the contiguity
of the underlying physical memory is not guaranteed. Consequently, these calls
are not suitable for use in cases in which contiguous physical memory is
required.
...
JB




-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux