tags: linux centos Operation and maintenance
http://sourceforge.net/projects/ltp/files/LTP Source/
http://ltp.sourceforge.net/
1, install compilation
tar jxvf ltp-full-20150420.tar.bz2

cd ltp-full-20150420/
./configure

Make && make install

cd /opt/ltp/

./Runltp -f commands (Test regular command)
./Runltp -f admin_tools (Test whether the common management tool is normal and stable)
./Runltp -f fcntl-locktests (Test if the NFS network file system lock is stable)
./Runltp -f admin_tools (Test whether the common management tool is normal and stable)
./Runltp -f dio (test is normal if the direct IO is stable)
./Runltp -f dma_thread_diotest (Test Direct Memory Access Thread Direct IO is normal)
./Runltp -f fcntl-locktests (Test if the NFS network file system lock is stable)
./Runltp -f filecaps (Test if FileCaps is normal)
Prefabrication: Plus a line in the /etc/sysctl.conf file:
CONFIG_SECURITY_FILE_CAPABILITIES = Y Restart the computer
./RunLTP -F fs (whether the test file system is normal)
./Runltp -f fs_bind (Test if fs_bind is normal)
./RUNLTP -F FS_EXT4 (Test if fs_ext4 is normal)
./Runltp -f fs_perms_simple (simple test file system permission)
./Runltp -f fs_readonly (Test file system read only)
./Runltp -f fsx (pressure testing file system)
./Runltp -f hyperthreading (CPU Hyperith Technology Test)
./Rmnltp -f io (asynchronous IO test)
./RunLTP -F IO_CD (Pressure Test for CD CD-ROM) Prefabrication: Put the CD into the optical drive
-T: Time to specify the test
-t 60s = 60 seconds
-t 45m = 45 minutes
-t 24h = 24 hours
-t 2d = 2 days
./Runltp -f lvm.part1 (Test file system MSDOS, Reiserfs, EXT2, NFS, RAM Disk, minix)
./Runltp -f math (math library test)
./Runltp -f nfs (NFS Network File System Test) Prefab Condition: Configuring NFS File System Services in this unit
./Runltp -f pipes (pressure testing pipeline)
./Runltp -f syscalls (test kernel system call)
./Runltp -f syscalls-ipc (Interprocess communication test)
./Runltp -f can (Test the stability of the area network of the controller)
./Runltp -f connectionors (Test the functionality and stability of NetLink Connector)
./Runltp -f ipv6 (the basic network function in the IPv6 environment)
./Runltp -f ipv6_lib (IPv6 Environmental Network Development Shared Library) Prefab Conditions: Kernel Support IPv6
./Runltp -f multicast (Stability of testing multicast)
Prefabrication:
(1) Set environment variables export rhost = <multicast target address>
(2) /Root/.rhosts ,/home/user/.rhosts Add Content: Multicast Target Host Address, Multicast Target Host User, how many multicast target hosts write how many strips.
./Runltp -f network_commands (Stability of FTP and SSH) Prefab Condition: Open FTP and SSH
./Runltp -f network_stress.whole (Pressure test of networks) (2) Services running on the server: SSH DNS HTTP FTP
./runltp -f nptl (Test the stability of the local POSIX thread library) Prefault: kernel support POSIX local line library
./RunLTP -F Pty (Test Virtual Terminal Stability) Prefab Condition: Core Support VT Console
./Runltp -f quickhit (stability of test system call)
./Runltp -f rpc and ./runltp -f rpc_test (Test Remote Procedure Call Stability Prefab Condition: Kernel Supports Remote Process
... / RUNLTP -F Modules (test kernel module)
./runltp -p -l /tmp/resultlog.20180421 -d /tmp/ -o /tmp/ltpscreen.20180421 -t 1h
Or./runalltests.sh


-p: Artificial specified log format, guarantee log for readable format
-L: Record the file of the test log
-d: Specify a temporary storage directory, defaults to / TMP
-o: Direct print test output to /tmp/ltpscreen.20180421
-T: Time to specify the test
-t 60s = 60 seconds
-t 45m = 45 minutes
-t 24h = 24 hours
-t 2d = 2 days
Vim /TMP/Resultlog.20180421 View

cd /opt/ltp/testscripts/
Yum Install GCC-C ++ LibSTDC + ± Devel first installed dependence
Yum install -y sysstat installed this

./ltpstress.sh -d /tmp/ltpstress.data -l /tmp/ltpstress.log -I /tmp/ltpstress.iostat -i 5 -m 128 -t 1 –S

-d: Specify SAR or TOP record file, default / TMP/LTPSTRESS.DATA
-l: Record test results to /tmp/ltpstress.log
-I: Record "iostat" results to IOFILE, default is /TMP/ltpstress.ioStat
-i: Specify SAR or TOP snapshot time interval, default is 10 seconds
-m: Specify the smallest memory usage, default: RAM + 1/2 SWAP
-n: Do not pressure testing network
-S: Capture data with SAR
-T: Capture data using the TOP tool modified by LTP
-t: Specify test time, default is an hour
There will be a lot of LTPSTress files in CD / TMP /.
SAR -U -F LTPSTRESS.DATA test CPU average usage


SAR -R-F ltpstress.data Memory average usage






[Outer chain picture "failed, the source station may have an anti-theft chain mechanism, it is recommended to save the picture directly upload (IMG-NBOOFBOR-1620028675088) (C: \ users \ Dell \ AppData \ Roaming \ Typora \ Typora-user-images \ IMAGE-20210503152344877.png)]


e -DNTIME=20 stream.c -o stream.o
[ ... (img-nboofbor-1620028675088)]
[ ... (img-pueglbem-1620028675089)]
[ ... (IMG-1BOY2CCE-1620028675090)]
1, two tools for performance test: LoadRunner, Jemter LoadRunner: is an industrial-grade standard performance test load tool that simulates tens of thousands of users to implement tests, and monitor p...
1, define a scope (a bit similar to Python) in accordance with the tree structure of the JMeter test plan Principles of Scope: The sampler is the core of JMeter, does not work in other components logi...
contents eas_one_small_task eas_one_big_task eas_small_to_big eas_big_to_small eas_small_big_toggle eas_two_big_three_small sched_cfs_prio sched_dl_runtime sched_latency_dl sched_latency_rt sched_prio...
Mailing list subscription address:https://lists.linux.it/listinfo/ltp (obtained in README.md) 1. Login to the website, fill in your personal email, name and email passwd: 2. Click Subscription to subm...
LTP Code introduces a two-step method of learning, personally I think that the best, effective fast. Method 1 View the official presentation document (if you came into contact with ltp, you must see S...
EDITORIAL In fact, before writing submit patches, probably need to talk about the open source community begins operation models and processes, and to speak at how to participate in discussions and som...
Through experimentation, parallel stream does not necessarily have to be faster than sequential stream, so pay attention to use when choosing. Code: ParallelStreamsHarness .java ParallelStreams .java ...
table of Contents Introduction ready Way of use Performance report Introduction Lighthouse translated is the meaning of "Lighthouse", which is a Web performance test tool developed an...
Article catalog Background 2.Sysbench installation 3.Sysbench Tools 4.TPS, OPS, 95% RT, concurrent, throughput 5. Case Analysis Background Sysbench is a pressure test tool that tests the hardware perf...
Article catalog Background 2.TPCH installation 3.TPCH Tools 4.TPCD 22 SQL statement analysis 5. Case Analysis Background TPCH is a toolkit provided by TPC (Transaction Processing Performance Council)....