subdirectories) is listed.-B: The values listed are output in bytes, with the default Kbytes-C: Last add total-K: Output in kilobytes-m: Output in megabytes-S: Only sums are listed-H: The system automatically adjusts the unit, for example, the file is too small may be a few k, then the unit is displayed in K, if large to a few grams, it is displayed in G units. I am accustomed to using du–sh filename in th
"- H ", displays the file system size in the appropriate units (KB, MB, GB), but with 1000 capacity conversion-I: Displays inode index node usage instead of disk block-K: chunks Show disk space usage in kilobytes (1024 bytes) (default unit)-L: Show only disk space usage on the local file system-M: Display in megabytes-P: Using the POSIX output format-t: Displays disk space usage for the specified type of f
: information used to display some tools (e.g. LS--help) man ls: (list directory Contents) See instructions for using "LS" instructions, man+ unfamiliar instructions, this feature can help us to quickly understand unfamiliar commands history: Show previously used commands history-c: Clear historical record clear: Clean screen Alias: View display aliases Unalias: Aliases PS directive: ps-e: View all static processes Ps-ef: Show verbose static process Ps-ef|grep sshd: Filter out specific pro
in bytes.-C or –total displays the sum of all folders or files in addition to the size of the folder or file.-D or –dereference-args displays the source file size for the specified symbolic connection.-H or –human-readable to k,m,g to improve the readability of the information.The-H or –si is the same as the-h parameter, but the k,m,g is in 1000 as the conversion unit instead of 1024.-K or –kilobytes in 1024 bytes.-L or –count-links a file that repea
sorted by byte
3. du-sh/usr/* | Sort-rnThis is sorted by megabytes (M)
4. Select 10 of the precedingDu-s/usr/* | Sort-rn | Head
5. Select the following 10Du-s/usr/* | Sort-rn | Tail
Du-h–-max-depth=0 Userdu-sh–-max-depth=2 | More
This article specifically describes the Linux in the du command? ⑹ ǎ?⒂ ether 菔 The irresolute of the patella 溆 the Ā?br du command: Statistics the size of the disk space that a folder (or file) occupies.Syntax: du [-ABC
each of the specified files, or displays the respective disk usage for each file in the folder.-B or-bytes displays the folder or file size in bytes.-C or –total displays the sum of all folders or files in addition to the size of the folder or file.-D or –dereference-args displays the source file size for the specified symbolic connection.-H or –human-readable to k,m,g to improve the readability of the information.-H or –si and-h?⑹???? Entropy, M,g is converted to 1000 units instead of 1024.-K
9306 0/0/0 W 0.00 0 0 0.0 0.00 0.00 114.92.*.222 Aa.bb.com Get
/server-status http/1.1
---------------------------------------------------------------------
-----------SRV Child Server Number-generationPID OS Process IDACC number of accesses this connection/this child/this slotM Mode of operationCPU CPU usage, number of secondsSS Seconds Since beginning of most recent requestReq milliseconds required to process most recent requestConn Kilobytes tran
satisfy all applications, which is up to you. You should analyze the usage of the program's memory and then work out a suitable solution. A cache space that is too small can cause images to be released and reloaded frequently, which does not benefit. A cache space that is too large can still cause java.lang.OutOfMemory exceptions.Here is an example of using LruCache to cache a picture:
Private lrucache
@Override
protected void OnCreate (Bundle savedinstancestate) {
//Gets the maxim
high-resolution images.
And not a specified cache size can satisfy all applications, which is up to you. You should analyze the usage of the program's memory and then work out a suitable solution. A cache space that is too small can cause images to be released and reloaded frequently, which does not benefit. A cache space that is too large can still cause java.lang.OutOfMemory exceptions.Here is an example of using LruCache to cache a picture:PrivateLrucacheMmemorycache; @Overrideprotected
.
//LRUCache pass through the constructor function to the cache value, in kilobytes.
int maxmemory = (int) (Runtime.getruntime (). MaxMemory ()/ 1024);
//Use 1/8 of the maximum available memory value as the size of the cache.
int cacheSize = maxmemory/ 8;
Mmemorycache = new lrucache
@Override
protected int sizeOf (String key, Bitmap Bitmap) {
//Override this method to measure the size of each picture, returning the number of pict
10 MB increments. thus, for any database up to approximately 300 gigabytes, the file size is nosmaller than 10 MB, for up to approximately 600 gigabytes the file size is nosmaller than 20 megabytes, and so on.
-- To prevent tracking file from occupying too much space, the initial value is 10 m, and then 10 m is added each time. If the database is close to 300g, the trackingfile cannot be less than 10 m. If it is close to 600g, it cannot be less than
When we choose VPS, Server host, we often see the common MB, GB, Mbps, and so on some of the labeling units. Most of us will probably know MB (megabytes), which is much larger than the amount of memory we often use. But if the bandwidth is involved in Mbps, it may be a bit difficult to understand, such as we often see that there is 2Mbps bandwidth, many people will understand that 2MB, and then use the file drag test to find out how no 2MB, so will be
The free command can be used to view system memory usage. I am generally accustomed to the-m parameter view in megabytes[Email protected] ~]# free-m total used free shared buffers cachedmem: 1020288 947960 72328 312 82656 647740-/+ buffers/cache: 217564 802724Swap: 2097148 466656 1630492Other parameters
-B Displays memory usage in bytes.
-K displays memory usage in
truncated towards Zer o when the converting them to an integer. This happens implicitly if the number is stored in the fields of each pixel. Now let's has a look at the impact of the Changes:first, memory consumption for the image was down from megabytes to 6 Kilobytes (400*400*4 bytes). That ' s a factor of 35x less! So, yes, tables does have a noticeable overhead. Btw:the original program would consume,
that is too small can cause images to be released and reloaded frequently, which does not benefit. A cache space that is too large can still cause java.lang.OutOfMemory exceptions.Here is an example of using LruCache to cache a picture:PrivateLrucache@Overrideprotected void onCreate(Bundle savedinstancestate) {//Gets the maximum amount of available memory, using memory exceeding this value can cause a OutOfMemory exception. //LRUCache pass through the constructor function to the cache value
use multiple LRUCache objects to distinguish different groups of pictures.
Can you maintain a good balance between quantity and quality? In some cases, it is more effective to store multiple low-pixel images, while loads in the background to load high-resolution images.
And not a specified cache size can satisfy all applications, which is up to you. You should analyze the usage of the program's memory and then work out a suitable solution. A cache space that is too small can cause imag
1.Use of DFView current disk maximum capacity, used capacity ... df [ahikhtm]-a lists all file systems, including system-specific/proc-k displayed in kilobytes-M in megabytes-H with an easy-to-read capacity display-H to m=10 00K replaces m=1024k-i without hard disk capacity and is displayed as the number of inodeUse of 2.duDu [AHSKM]-a lists all files with directory capacity, because the default (direct DF)
The du command is a view of the space used by files and directory disks.(1) Usage:usage: du [options] [file](2) Function:function: report disk space usage(3) Option parameters:1)-A--all displays statistics on all files, not just subdirectories.2)-B--bytes outputs the size in bytes, overriding the default 1024-byte count unit.3)-H--human-readable with K,m,g as the unit, improve the readability of the information.4)-S--summarize show only sum for each parameter5)--max-depth=n only outputs the tota
case insensitive) ending with "K", "M", or "G" kilobytes, megabytes, or gigabytes. 0 indicates that the update is as fast as possible, but this may result in a drop in upload speed.
APC.RFC1867_TTL BOOLTTL for rfc1867 entries.
Apc.localcache BooleanUsing a Shadow-cache local process, it can reduce the contention between locks when writing to a buffer.
Apc.localcache.size integerThe size of the local pro
Now the memory basically reached the average price of 1 yuan/mb, many friends of the computer farewell to the poor 64MB, 128MB memory, 256MB has become a standard preparation, 512MB and even 1GB memory is no longer "sensational." But there is one thing that makes many friends wonder: "Why is my Windows startup, my software running at such a slow rate using 1G of memory?" "
After installing the large capacity memory, the system, the program operation efficiency has not been greatly improved, bec
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.