![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| takes time to connect my application | Gods_help | SUN Solaris | 2 | 11-06-2008 12:10 PM |
| find command takes a lot of time ( can I skip directories) | knijjar | Shell Programming and Scripting | 3 | 08-12-2008 08:08 PM |
| shell script takes long time to complete | ozzman | Shell Programming and Scripting | 12 | 02-05-2007 11:25 PM |
| why shell scripting takes more time to read a file | brkavi_in | Shell Programming and Scripting | 1 | 06-23-2006 08:20 AM |
| fwrite takes extremely long time | inna | High Level Programming | 5 | 07-06-2005 06:19 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi All,
I am working on a Solaris machine. When i use a particular software to generate some files, the log shows around 0 to 3 secs for generating each file. But the same when i see on the disk it shows double the time difference between two file generation. For example if file A takes 0 secs and file B takes 2 secs and file C takes 2 secs, when i give a ls command the output shows that file A created at 12:00:00 B created at 12:00:08 C created at 12:00:14 Most files generated in 0 secs show 8 seconds and others show double the time. What could be the problem Thanks in advance |
|
|||||
|
Quote:
|
|
|||||
|
Unix has a buffer cache which is a very large chunk of main memory.
When you issue a disk read, unix sees if the data is already in the buffer cache, if so no i/o occurs, the data is just moved into your program's buffer. When you issue a write, the data is just moved into the buffer cache. The system periodicly scans the buffer cache and flushes new data to disk. This is called "write-behind". The system also predicts data that you are likely to need and issues reads to get the data into the buffer cache before your program wants it. This is called "read-ahead". Read-ahead and write-behind work so well that most disk i/o is reduced to just moving data in memory. |
![]() |
| Bookmarks |
| Tags |
| solaris |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|