Server Configuration
CPU model [8 core] Intel (R) Xeon (r) CPU E5620 @ 2.40GHZ | Usage Frequency: 2394.021 | Second-level cache: 12288 KB | bogomips:4788.04x8
Memory 4G
HDD 3 x 300G 15000 turn to RAID 5
WordPress 3.8
CentOS 5.7nginx/1.2.7Php5.2.17p1MySQL 5.1.60
Nginx php mysql These parameters should be how to configure
Reply content:
Server ConfigurationCPU model [8 core] Intel (R)
Obtain CPU speed
Run the following command in shell:
Sysctl-A | egrep-I 'hw. Machine | HW. model | HW. ncpu'
The output is as follows:
HW. Machine: amd64HW. Model: Intel (r) Xeon (r) CPU e5620 @ 2.40 GHzHW. ncpu: 8HW. machine_arch: amd64
The above information shows that the CPU is Intel Xeon quad-core and the frequency is 2.4 GHz.
Obtain more CPU Informat
http://leeyin.iteye.com/blog/1459274[b] PS: This profile is for Dell R710, dual Xeon E5620, 16G memory hardware configuration. CentOS 5.6 64-bit system, MySQL 5.5.x stable version. For sites with daily IP 50-100W,PV 100-300w, use the InnoDB storage engine primarily. Other application environment please set the optimization according to the actual situation. [/b] # The following options will be read by the
Output of your own server1. View the number of physical CPUs #cat/proc/cpuinfo |grep "Physical id" |sort |uniq|wc-l12. View the number of logical CPUs #cat/proc/cpuinfo |grep "Processor" |wc-l83. View CPU is a few cores #cat/proc/cpuinfo |grep "cores" |uniqcpu cores:44. View CPU Frequency #cat/proc/cpuinfo |grep mhz|uniqcpu MHz : 1600.000# uname-alinux 54acm 2.6.32-25-generic-pae #44-ub Untu SMP Fri Sep 21:57:48 UTC i686 gnu/linux (view current operating system core information) # Cat/etc/issueu
PS: This profile is for Dell R710, dual Xeon E5620, 16G memory hardware configuration. CentOS 5.6 64-bit system, MySQL 5.5.x stable version. Applies to the day IP 50-100W,PV 100-300w site, mainly uses the InnoDB storage engine. For other application environments, set the optimization according to the actual situation.
# The following options will be read by the MySQL client application.# Note Only the clie
, the server's CPU support Hyper-Threading Technology
2. View CPU Information
When we cat/proc/cpuinfo, CPUs with the same core ID are the same core hyper-threading, and CPUs with the same physical IDs are threads or cores encapsulated by the same CPU.
3, the following examples illustrate
[0] View CPU model
The code is as follows
Copy Code
# Cat/proc/cpuinfo | grep name | Cut-f2-d: | Uniq-cIntel (R) Xeon (r) CPU
PS: This profile is for Dell R710, dual Xeon E5620, 16G memory hardware configuration. CentOS 5.6 64-bit system, MySQL 5.5.x stable version. Applies to the day IP 50-100W,PV 100-300w site, mainly uses the InnoDB storage engine. For other application environments, set the optimization according to the actual situation.
# The following options will be read by the MySQL client application.# Note Only the clie
11gR2 Grid Infrastructure Installation prerequisites On LINUX Basic Environment server brand IBM server model X3650M2cpu type Intel Xeon E5620 @ 2.40GHzcpu Number 2 memory size 24g disk array DS3200 hard disk size 1.8 TB software preparation: -- Oracle Database (relational des Oracle Database and Oracle Infrastructure -- Oracle Grid Infrastructure (relational des Oracle ASM, Oracle Clusterware, and Oracle r
For most applications, access to hotspot data exists, that is, the Access Frequency of some data in a certain period of time is much higher than that of other data.Common hot data includes "the latest news", "the most popular news", and "movies with the largest downloads.
To understand the support of MySQL Innodb for hotspot data, I conducted a benchmark test. The test environment is as follows:
[Hardware configuration]
Hardware
Configuration
CPU
Intel (R)
For most applications, access to hotspot data exists, namely:The Access Frequency of some data in a certain period of time is much higher than that of other data..Common hot data includes "the latest news", "the most popular news", and "movies with the largest downloads.To understand the support of MySQL Innodb for hotspot data, I conducted a benchmark test. The test environment is as follows:
[Hardware configuration]
Hardware
Configuration
CPU
Intel (R)
traffic would suddenly fall below 5 m in a few seconds, then they updated the NIC Driver and recovered.
Our situation is a little different. When our traffic drops to a very low level, the network traffic did not reach a very high peak. Sometimes this problem does not occur when the network traffic remains at the highest peak.
Our network card is intel, and the network card driver is Microsoft's own driver. We do not dare to update the network card driver because updating the network card d
MySQL5.5 single-host my. cnf Parameter Optimization in CentOS
PS: This configuration file is designed for Dell R710, dual Xeon E5620, and 16 GB memory hardware. CentOS 5.6 64-bit system, MySQL 5.5.x stable version. Applicable to websites with daily IP addresses of 50-100 w and PV of-w, mainly using the InnoDB Storage engine. For other application environments, Set Optimization Based on actual conditions.
#
MySQLmy. cnf parameter configuration optimization explanation bitsCN. comPS: this configuration file is for Dell R710, dual Xeon E5620, 16 GB memory hardware configuration. CentOS 5.6 64-bit system, MySQL 5.5.x stable version. Applicable to websites with daily IP addresses of 50-100 w and PV of-w, mainly using the InnoDB storage engine. For other application environments, set optimization based on actual co
Serialization Framework performance Comparison (Kryo, Hessian, Java, Protostuff)Brief introduction:
Advantages
Disadvantages
Kryo
Fast, small volume after serialization
More complex cross-language support
Hessian
The default supports cross-language
More slowly
Protostuff
Fast, based on PROTOBUF
Static compilation required
Protostuff-runtime
No static compilation required, but
)); to } + for(Thread t:threads) { - T.start (); the } * for(Thread t:threads) { $ T.join ();Panax Notoginseng } - } the + Public voidrun () { A Longi = iterations + 1; the while(0! =-i) { +Longs[arrayindex].value =i; - } $ } $ - Public Final Static classVolatilelong { - Public volatile LongValue = 0L; the Public LongP1, p2, p3, P4, P5, P6;//Notes - }Wuyi}The logic of the code is that the
compression commands:Make a backup of all files in the/usr directory, including its subdirectories, with the backup file named Usr.tarTar cvf usr.tar/homeMake a backup and compress all the files in the/USR directory and include its subdirectories, and the backup file name is usr.tar.gzTar czvf usr.tar.gz/usr--ExampleTar czvf negchina-src.tar.gz/usrCompress a set of files with a suffix of tar.gz#tar CVF back.tar/back/#gzip-Q Back.tarOr#tar CVFZ back.tar.gz/back/Releases a file with a suffix of t
, dual Xeon E5620, 16G memory hardware configuration. CentOS 5.6 64-bit system, MySQL 5.5.x stable version. Applies to the day IP 50-100W,PV 100-300w site, mainly uses the InnoDB storage engine. For other application environments, set the optimization according to the actual situation.
# The following options will be read by the MySQL client application.
# Note Only the client application included with
Cpu:intel (R) Xeon (r) CPU E5620 @ 2.40GHz
Hard drive: 900G
Memory: 12G
Operating system: CentOS release 6.4 (X86_64bit)
1 Check basic requirements (for a cool server, this is definitely a requirement, you can skip)
Memory size
grep memtotal/proc/meminfo
Swap partition size
grep swaptotal/proc/meminfo
Increase the Swap partition
Create a/home/swap such a partition file. The size of the file is 5.12 mill
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.