We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Hardware

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

What Is the Sun-Ni Law?

By Lakshmi Sandhana
Updated: May 16, 2024

The Sun-Ni law is an approach used in parallel processing that attempts to improve performance. It is also called memory bounded speedup and was proposed by Professors Xian-He Sun and Lionel M. Ni. This law scales up the problem size and tries to find a solution limited only by the amount of memory available. It is a generalization of two other approaches used in parallel computing called Amdahl's law and Gustafson's law.

One of the challenges in parallel computing is to figure out how the performance of the system improves when it is scaled up. As this can be hard to measure, one of the most well-known scalability metrics studied is speedup. Speedup relates the execution of parallel programs running on a certain number of processors and the execution time it takes for the fastest sequential program to solve that problem. One type of speedup approach is to keep the problem size constant, allowing the number of processors that work on the problem to be increased. This is called Amdahl's law and is known as fixed-size speedup.

Amadhl's law thus attempts to reduce the execution time using more parallel processors and fixes the computational workload as a constant. It essentially tries to solve the problem in lesser and lesser time. In contrast, Gustafson's law, also known as fixed-time speedup, tries to obtain a result within a fixed time and scales up the problem size, carrying out more operations to get an accurate solution. This is applied to problems where there is a time constraint, but it is not vital to solve them in the shortest possible time.

The memory bounded speedup approach, or the Sun-Ni law, is concerned with memory size and how it affects performance. The problem size that can be tackled is affected by the amount of memory available. A limited physical memory means that more time is spent figuring out workarounds to solve a problem within the parallel computing architecture. The approach the Sun-Ni law takes is, if the time limit specified by the fixed-time speedup is met and there is enough memory space, the problem should be scaled to make adequate use of all the available memory.

This is what the Sun-Ni law does, and the formula considers memory size and relates it to performance. Every processor in a parallel computing architecture has a fixed memory, and the formula relates the problem size to the total available memory capacity. The memory bounded speedup laid out in the Sun-Ni law is, in essence, a generalization of both the fixed-time and fixed-size speedups. Given that the total memory size increases when the number of processors increase, the Sun-Ni law attempts to utilize all that memory space more efficiently.

EasyTechJunkie is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.
Discussion Comments
Share
https://www.easytechjunkie.com/what-is-the-sun-ni-law.htm
EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.

EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.