In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Hello! Hello, everyone. I am Jackie, a senior test engineer. Today I will join you to do a performance test on NTV Media Server G3, the high-performance streaming media server of Cloud Vision.
Today's test has a small goal, that is to verify whether the concurrency ability of NTV Media Server G3 can reach 3000 concurrency on an ordinary PC.
I. testing environment and tools
The test environments and tools used today include:
One PC is installed with CentOS operating system and streaming media server software, which is used as a streaming media server.
Several video resources
A set of stress testing tools for video broadcasting
First prepare the server, I do not have very good equipment here, only an i5 series PC purchased five years ago, CPU is the third generation i5, memory 4GB, storage 1T. This server is ordinary enough, the configuration is low enough, anyway, it is only a test, but not a formal operation, so use it.
Follow the instructions to install the 64-bit operating system CentOS6.5, followed by the NTV Media ServerG3 software, without any obstacles, and everything went well.
Using the command line, take a look at the system configuration:
[root@ntv007 proc] # free-m total used free shared buffers cachedMem: 3791 868 2923 0 124 93 Muhammad + buffers/cache: 650 3141Swap: 3935 0 3935 [root@ntv007 proc] # cat cpuinfoprocessor: 0vendor_id: GenuineIntelcpu family: 6model: 58model name: Intel (R) Core (TM) i5-3350P CPU @ 3.10GHzstepping: 9cpu MHz: 3093.127cache size: 6144 KB [root@ntv007 proc] # df-hFilesystem Size Used Avail Use% Mounted on/dev/mapper/vg_ntv007-lv_root 50G 35G 12G 75% / tmpfs 1.9G 01.9G 0% / dev/shm/dev/sda1 485M 32M 428M 7% / boot
Start the streaming media server software:
[root@ntv007 proc] # service ntv_server startStarting NTV Media Server G3.6... [OK] Starting Novel-TV Transcoding Engine 2.0... OK! [OK]
OK, everything starts normally as described in the instructions.
Second, prepare video resources
In order to be representative, I prepare a 50-minute documentary, a 2-hour film and a 7-minute training short film.
Refer to "NTV Media Server G3 user Manual", log in to the streaming media server backend, upload video files, transcode the uploaded files according to the bit rate of 1Mbps, and generate three video resources.
Third, execute stress test scripts
The testing tool uses http_loader, a video broadcasting pressure testing tool developed by an institute of the Chinese Academy of Sciences, which can simulate end-user playback behavior and conduct large concurrent stress testing on video servers.
First, take a look at the load before the system is pressurized through the system information viewing interface at the background of NTV Media Server G3:
As you can see from the interface, CPU doesn't have much load, and memory usage is 1GB.
3.1 500 concurrent testing
To execute the stress test script, first of all, do 500 concurrent simulation playback stress tests on the training video.
[root@ntv009 loader] #. / http_loader http://192.168.1.230/sps/vod/eng293.flv 500 null
Take a look at the system load through NTV Media Server G3 background:
CPU instantly fluctuated to 50%, then fell back and stabilized at around 10%. Memory consumption increases by about 200m.
3.2 1000 concurrent testing
Continue to pressurize, do 500 concurrent simulation playback pressure tests on movie videos, plus the load of the previous script, the total number of concurrency increases to 1000.
. / http_loader http://192.168.1.230/sps/vod/jgdy680.flv 500 null
Take a look at the system load through NTV Media Server G3 background:
CPU instantly fluctuated to 40%, then fell back and stabilized at around 10%. The total memory consumption is about 1.8GB.
3.33 3000 concurrent testing
Continue to pressurize the movie resources, do 2 simulations of 1000 concurrent playback pressure tests, plus the first two loads, the total number of concurrency increased to 3000.
. / http_loader http://192.168.1.230/sps/vod/jgdy680.flv 1000 null./http_loader http://192.168.1.230/sps/vod/jgdy680.flv 1000 null
Take a look at the system load through NTV Media Server G3 background:
At 2000 concurrency, the CPU load fluctuates to 50% and then stabilizes. Memory is consumed in 2.8GB.
At 3000 concurrency, the CPU load fluctuates to 50% and then below 20%. Memory consumption is close to 4GB.
Take a look at the concurrency statistics through the background:
Yes, after several rounds of pressurization, the number of concurrent visits is fixed at 3000.
Of course, there is another step to see if the video can still play smoothly at this time. Play the Yellowstone documentary through the video preview function in the background:
The effect is that the video loads quickly and plays very smoothly. It does look good!
Fourth, the end of the test
The stress test lasts for half an hour. Stop the test script manually to verify the recovery of system resources.
. / http_loader-s stop
View system resource usage:
As you can see, CPU and memory consumption are back to their pre-test state.
V. conclusion
After testing, it can be confirmed that this streaming software can easily achieve 3000 concurrent broadcasting on ordinary PCs.
Throughout the testing process, the CPU load is always small, which shows that the system optimization is indeed very meticulous. Memory load, during the test, memory consumption increases by 1GB for every 1000 increase in concurrency.
The above is only the blogger's own test conclusion, the equipment condition is limited, if you want to imitate the effect of large-scale operation, you need better equipment to support it. If you have any questions or suggestions, please leave me a message in the blog comments, Thanks!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.