Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-27-2004, 11:54 AM   #1
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Writing swap cache to HD on demand

I recieved an email from a member who apparently does not know how to post, I'll do what I can to help on that, but in the mean time, here's their email:
We write software in acu cobol it is a point of sale software and the server is
running Suse 8.1 and the terminals get a remote login from bootp from a package
called hotkey which is dos based.
My problem here in south africa the electricity is really krap and ups's do fail
when a system is running alot of the swop space is used to cache the file being used
and when it crashes what ever is in the swop space or ram gets lost and on
recovering the data files the last 5 invoices are lost .
What i need to do is set the swop space the flush every so many seconds to the hard
Somebody told me there is a command like swop-on or swop-off how would i use this
command to see if it will improve our data loss
from mark bosch
They asked me to post this for them, and it seemed like a good question.

The only idea I have is that maybe the swap (spelled s-w-a-p) on swap off commands send the data to the HD, however I don't know if it writes it to a specific location or simply flushes it to somewhere randomly, or possibly even the RAM...

Old 02-27-2004, 01:33 PM   #2
Registered: Aug 2002
Posts: 16,152

Rep: Reputation: 1874Reputation: 1874Reputation: 1874Reputation: 1874Reputation: 1874Reputation: 1874Reputation: 1874Reputation: 1874Reputation: 1874Reputation: 1874Reputation: 1874
How about setting up a cron job to execute the sync command? This would flush the filesystem buffers.
Old 02-27-2004, 02:19 PM   #3
Senior Member
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
Perhaps I don't understand the question, but isn't that what the update command is for?

man update
--- snip ---
two (bdflush) daemons are normally started in /etc/rc with one command: /sbin/update
-s call sync this often (in seconds) Default:30
-f call flush this often (in seconds) Default:5
--end snip ---


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Caching enabled and local cache: //var/cache/yum/base/primary.xml.gz does... dr_zayus69 Linux - Software 2 07-06-2005 04:32 AM
Cache Swap Directory Creation Problem arun_ain Linux - Software 4 06-14-2005 04:45 AM
Proxy/cache and dial on demand (from a newbie) electoneel90 Linux - Networking 2 02-13-2004 02:22 PM
squid cache server- error creating swap directory debloxie Linux - Networking 4 01-19-2004 12:49 AM
cd writing software which supports multisession writing jayakrishnan Linux - General 3 03-24-2003 05:51 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration