hello
we have upload some data in 15 servers in usa asia ...
i consider to add new feature , script can detect download speed between localhost and destination and use fastest server,
i have cut this part from a script which have this feature, download a xx MB file from all its source and check speed, and use fastest one:
I have searched the FAQ - by using sort, duplicates, etc.... but I didn't get any articles or results on it.
Currently, I am using:
sort -u file1 > file2 to remove duplicates. For a file size of 1giga byte approx. time taken to remove duplicates is 1hr 21 mins.
Is there any other faster way... (15 Replies)
Hi!
I have thousands of sub-directories, and hundreds of thousands of files in them. What is the fast way to find out which files are older than a certain date? Is the "find" command the fastest? Or is there some other way?
Right now I have a C script that traverses through and checks... (5 Replies)
hello
i need help to remove directory . The directory is not empty ., it contains
several sub directories and files inside that..
total number of files in one directory is 12,24,446 .
rm -rf doesnt work . it is prompting for every file ..
i want to delete without prompting and... (6 Replies)
I want to search a file in fastest manner.
Presently I am using 'find' command. But it is taking around 15min for searching. Is there any other method through which I can do it fast? (3 Replies)
I have a 5 GB text file(log/debug)
I want to delete all lines containing 'TRACE'
Command used
sed -i '/TRACE/d' mylog.txt
Is there any other fastest way to do this? (1 Reply)
Hi Experts,
I've been asked if there is a fast way to duplicate a file(10GB) and zip it at the same time. The zipped file would be FTP'd.....management is asking this. Maybe there is a better method all together? any ideas? CP will not cut it.
Thanks in advance
Harley (1 Reply)
Hi all,
We use strlen() fun provided by library to find the length of a string.
Looking inside of it, it has some different mechanism to find the length of string.
Normally, we scan the string byte by byte until the '\0' character. It takes a logn time to count length.
The Library strlen()... (2 Replies)
Hi expert,
Is there any fastest way to calculate recursive directory, and I have total 600 directories have 100000 files and 10 directory approximately 9000000 - 10000000 each files per directory. currently using this command "du -k --max-depth=0" to get the size but very slow it take 24 hours... (9 Replies)
Dear Experts,
I would like to know what's the best method for copy data around 3 mio (spread in a hundred folders, size each file around 1kb) between 2 servers?
I already tried using Rsync and tar command. But using these command is too long.
Please advice.
Thanks
Edy (11 Replies)
Discussion started by: edydsuranta
11 Replies
LEARN ABOUT CENTOS
pg_test_fsync
PG_TEST_FSYNC(1) PostgreSQL 9.2.7 Documentation PG_TEST_FSYNC(1)NAME
pg_test_fsync - determine fastest wal_sync_method for PostgreSQL
SYNOPSIS
pg_test_fsync [option...]
DESCRIPTION
pg_test_fsync is intended to give you a reasonable idea of what the fastest wal_sync_method is on your specific system, as well as
supplying diagnostic information in the event of an identified I/O problem. However, differences shown by pg_test_fsync might not make any
difference in real database throughput, especially since many database servers are not speed-limited by their transaction logs.
OPTIONS
pg_test_fsync accepts the following command-line options:
-f, --filename
Specifies the file name to write test data in. This file should be in the same file system that the pg_xlog directory is or will be
placed in. (pg_xlog contains the WAL files.) The default is pg_test_fsync.out in the current directory.
-s, --secs-per-test
Specifies the number of seconds for each test. The more time per test, the greater the test's accuracy, but the longer it takes to run.
The default is 2 seconds, which allows the program to complete in about 30 seconds.
-V, --version
Print the pg_test_fsync version and exit.
-?, --help
Show help about pg_test_fsync command line arguments, and exit.
AUTHOR
Bruce Momjian <bruce@momjian.us>
SEE ALSO postgres(1)PostgreSQL 9.2.7 2014-02-17 PG_TEST_FSYNC(1)