• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Thoughts about streaming from disk and VM
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thoughts about streaming from disk and VM


  • Subject: Re: Thoughts about streaming from disk and VM
  • From: Steven Spencer <email@hidden>
  • Date: Fri, 14 Mar 2003 21:49:40 +0000

I have used valloc, but have read that it is obsolete -
see http://www.osxfaq.com/man/3/valloc.ws

The following source mentions malloc calling vm_allocate to page align large blocks of memory
http://developer.apple.com/techpubs/macosx/Essentials/Performance/VirtualMemory/Allocating__eing_Memory.html

Since valloc calls malloc, it seems that calling malloc with a request
for memory larger than the size of one page causes the block to be
allocated on a page boundary.

- Steve Spencer


On Friday, March 14, 2003, at 06:08PM, Jeremy Sagan <email@hidden> wrote:

>On Thursday, March 13, 2003, at 03:32 PM, Bill Stewart wrote:
>
>> Yes INDEED - you will get much better disk performance if the
>> following are page aligned:
>> (1) The start address of your buffer
>
>Is there a recommended way to get memory aligned to a page?
>
>Jeremy
>_______________________________________________
>coreaudio-api mailing list | email@hidden
>Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
>Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Mixer units
  • Next by Date: Re: Altivec compile problem [OT ?]
  • Previous by thread: Re: Thoughts about streaming from disk and VM
  • Next by thread: Voltage level
  • Index(es):
    • Date
    • Thread