The example in this article describes the use of PHP to get folder size functions. Share to everyone for your reference. Specifically as follows:
?
Get folder Size
function Getdirsize ($dir)
{
$handle = Opendir ($dir);
while (false!== ($FolderOrFile = Readdir ($handle)))
{
if ($FolderOrFile!= "." $FolderOrFile!= "...")
{
if (Is_dir ("$dir/$FolderOrFile"))
{
$sizeResult + + getdirsize ("$dir/$FolderOrFile");
}
Else
{
$sizeResult + + filesize ("$dir/$FolderOrFile");
}
}
}
Clos
Exposure to computers all day, inevitably with a variety of measurement units to deal with, especially data, but you know bit, Byte, KB, GB, TB and so on all means how much data? Have you heard of EB, ZB, YB?
Bit (bit) is the initials of binary digit, the unit that measures information, and the smallest unit that represents the amount of content, only 0 or 12 binary states. 8 bits make up a byte (byte), can hold an English character, and a Chinese character requires two bytes of storage space,
size. You may use K, M and G for kilobyte, megabyte and Gigabyte.Example:
-Xmx256m sets the maximum heap size to 256 MB
Supported by: 1.3, 1.4, 1.5
-XMS
Minimum heap size. You may use K, M and G for kilobyte, megabyte and Gigabyte.Example:
-Xms256m sets the minimum heap size to 256 MB
Supported by: 1.3, 1.4, 1.5
-Xmn
Sets the size of the young generation. You may use K, M and G for kilobyte,
You may rarely face this situation, but once so, you must know what is wrong: insufficient memory or out-of-memory (OOM ). The result is very typical: you cannot reallocate the memory, and the kernel will kill a task (usually the one running ). Generally, with a large amount of read/write switching, you can see the screen and disk movements.
The following is an implicit question: How much memory do you need to allocate? How much does the operating system allocate to you? The basic reason for OOM
-ROM). Though a CD-RW disc can be erased and written again, character CD players and other equipment generally perform better with CD-R media ( Always check if a CD player supports CD-RW before you buy it ). A standard CD-RW is 120 in diameter and usually comes with a capacity of either 640 MB or 700 mb. A CD-RW will store 74 or 80 minutes of CD audio, but as mentioned, is much less compatible with CD players than CD-R.
Using software solutions suchNero burning Rom, At-home users can create au
View existing VG # lsvgrootvgoravgdatavg view the usage status of each VG # lsvgoravg focuses on several values PPSIZE: 512 megabyte (s)
View existing VG # lsvg rootvg oravg datavg view the status of each VG # lsvg oravg focuses on several values pp size: 512 megabyte (s)
View existing VG
# Lsvg
Rootvg
Oravg
Datavg
View the usage status of each VG
# Lsvg oravg
Focus on several values
Pp size: 512
harqprocess number field)
(3) Each terabyte in space-division multiplexing has its own Rv/ndi purpose: to allow only one terabyte to be re-transmitted. That is, the 2 TB of empty division multiplexing is irrelevant, and when one of the terabytes fails, another successfully received TB does not need to be re-transmitted, and a successful TB harqprocess can be used for the next new pass. (upstream processing
small.Probable CausesNeither dump device is large enough to accommodate a system dump at this time.Recommended ActionsIncrease the size of one or both dump devices.Detail DataLargest dump deviceLg_dumplvLargest dump device size in kb5242880Current estimated dump size in kb5272780View estimated values# Sysdumpdev-e0453-041 Estimated dump size in bytes: 5399537254View our current value# Lslv lv_dumplv0516-306 lslv: Unable to find lv_dumplv in the DeviceConfiguration Database.# Lslv lg_dumplvLogic
ASM-scalability and limits [ID 370921.1]
ASM imposes the following limits:
(1) 63 disk groups in a storage system(2) 10,000 ASM disks in a storage system(3) 2 terabyte maximum storage for each ASM disk (the bug 6453944 allowed larger sizes, but that led to problems, see note 736891.1 "ORA-15196 with ASM disks larger than 2 TB ")(4) 40 exabyte maximum storage for each Storage System(5) 1 million files for each disk group(6) 2.4
bigfile tablespace is a tablespace with a single, but potentially very large (up to 4G blocks) data file. Traditional Smallfile tablespaces, in contrast, can contain multiple data files, and the files cannot be as large. The benefits of Bigfile tablespaces is the following:
A bigfile tablespace with 8K blocks can contain a + terabyte data file. A bigfile tablespace with 32K blocks can contain a, terabyte
MySQL Group takes the first few records of each group (rank) with group by and order byHttp://www.jb51.net/article/31590.htm--group The data of the row with the maximum (small) value by a fieldThe code is as follows:/**/--Create the table and insert the data:The code is as follows:Create TableTB (namevarchar(Ten), Valint, Memovarchar( -)) Insert intoTbValues('a',2,'A2 (second value of a)') Insert intoTbValues('a',1,'the first value of a a1--a') Insert intoTbValues('a',3,'the third value of th
device is too small.Probable CausesNeither dump device is large enough to accommodate a system dump at this time.Recommended ActionsIncrease the size of one or both dump devices.Detail DataLargest dump deviceLg_dumplvLargest dump device size in kb5242880Current estimated dump size in kb5272780View estimated values# Sysdumpdev-e0453-041 Estimated dump size in bytes: 5399537254View our current value# Lslv lv_dumplv0516-306 lslv: Unable to find lv_dumplv in the DeviceConfiguration Database.# Lslv
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.