Mac is amazing.

Source: Internet
Author: User

Recently, my Cuda program encountered a rare problem of memory insufficiency in Mac. After some investigation, we found that Mac memory consumption was amazing. Through cudamemgetinfo In the MAC system, we found that although the total memory of a geforce GT 120 piece is 536 MB, the free memory is only 21 MB. Although the situation on GeForce 9400 is not so surprising, free memory is better than total.
Memory is reduced by 100 MB. In Windows, free memory is about 10 MB less than total memory.


Later, another student told me that the graphic interfaces of many Mac software use the hardware acceleration function of the graphics card, even the basic display function. So I shut down many running programs on Mac equipped with geforce GT 120, and the free memory was much more-170 MB. At this time, I ran my program and there was no error of insufficient memory.


Maybe Mac puts a lot of display logic into the kernel. Otherwise, even if many programs are running in the current system, the free space available in the virtual memory of a process should not be affected, but it is often necessary to exchange between the real and virtual storage, which leads to a serious decline in program performance. It seems that Mac is still intended for individual consumers rather than professional operating systems.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.