Network Application Performance Analysis

Source: Internet
Author: User

In the past few days, I have been busy with one thing: writing a video collection server to implement functions such as collection and storage of on-demand videos.

I have understood the requirements, but it is a little scary:

1. Images transmitted at 100 vertices at the same time. 2. The image format for each point is 640*480, with a single frame of 12 K and 25 frames per second. The value is 300 K/s.

If you use 100*300 K/S = 30 m/s, it's really not small. The value of 1 s is 30 m, and only collection is required, and VOD and forwarding are required,

The pressure on the server can be imagined.

To further confirm, I tested network transmission efficiency with a third-party software. The result is as follows:

Environment: m network, two common PCs.

The testing speed is 10 Mb/s, which is similar to others' data. The memory usage is not high, and the CPU usage is 100%.

The calculation test data is as follows:

10 m/100 m = 0.1 s, storage: ordinary hard disk, read/write speed maintained at 50 m/s, 10/50 = 0.2

In this way, the CPU can be usedProgramThe processing time is only 1-0.3 = 0.7.

According to this data, what configuration should I configure for the 100 video capture servers?

1 Nic, which is generally 100 MB in popularity. Check that the actual transmission speed can reach m/s.

The pressure is not as high as M network transmission pressure.

2 Disk: The above analysis also shows that the disk consumes a large proportion of time. However, the speed of server hard disks is even more surprising:

The sas15k speed can reach 300 MB/S, or SCSI speed. This speed completely guarantees the fast writing requirements of the program. 30/300 <10/50

3 CPU and memory: currently, 2.0-ECS instances can start with Intel X Series E5 with 4 cores and a frequency of about,

The front-end is 1333 MB, the second-level cache is kb, and the memory is more than 2 GB. The 667m memory is used.

According to this data, theoretically, a single x3650 series server can meet the requirements!

The key is to see how the program writes stably and efficiently. At the same time, maintaining high-speed communication with 100 points is a big challenge, but it is also necessary to ensure that it is not easy to get down, even if it fails, it must be restored quickly,

It seems that there will be more hair loss.

 

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.