crontab -e
* * * * * cd /mnt/ram;tar -cf - . | (cd /backup;tar -xf - .) >/dev/null
:-)
Will save a copy of your ramdisk every 60 seconds. (change the mountpoints)
You Wrote:
Date: Tue, 19 Feb 2002 13:53:33 -0500
From: "Mikes work account" <mrock@stewartsigns.com>
To: <slug@nks.net>
Subject: RE: [SLUG] A ggod one for all of you,,
The issue on my system is the sheer volume of reads and writes to the hard
drive and it is not a linux problem per se. I just need a way to back up a
ram disk on a regular basis and I will have solved my problems.
Michael C. Rock
-----Original Message-----
From: slug@lists.nks.net [mailto:slug@lists.nks.net]On Behalf Of Derek
Glidden
Sent: Tuesday, February 19, 2002 11:21 AM
To: slug@nks.net
Subject: Re: [SLUG] A ggod one for all of you,,
On Tue, 2002-02-19 at 08:43, Mikes work account wrote:>
> We have added many programs and files to the system and as a result the
> system is again 'sluggisn'.
I assume you meant "sluggish". :)
Linux isn't Windows - just installing more programs/adding more files to
the system shouldn't make it run any slower unless those programs are
also running. Are you only running the services you absolutely need to
have that machine function? i.e. if you're not running a web server on
it, make sure apache isn't installed and running, if it's not being a
DNS server, make sure BIND isn't installed and running, etc.
Just having a lot of files on a Linux box should in no way affect the
speed. I have a server at home that does DNS, DHCP and is the NFS
server to my whole home network with somewhere on the order of 150K+
files on a 120GB LVM-ed partition. It's a 300Mhz K6-2 and it's nice and
speedy at 100Mbps. It's only running the processes it *needs* to be
running to do what it needs to do.
It's easy to determine what's running on your Linux box with "ps aux".
If you're running RedHat, you can use the "ntsysv" utility to see what
services are started up when the system boots. You can also check the
various /etc/rc.d directories to see what init scripts are getting
called for the various runlevels. (2 or 3 are the "typical" non-X
runlevels on most Linux boxes I've seen, so you'd look in /etc/rc2.d or
/etc/rc3.d to see what scripts get called. Look at /etc/inittab to see
what the default runlevel of your box is.)
What kind of processor is in your machine? How much memory? What kind
of hard drive? What distro and kernel version? What is it supposed to
be doing that is so slow? Presumably there's a network hooked up to it,
what speed network, how many users and what network adapter is in the
box?
All these can help figure out why your machine is "sluggish" when it
shouldn't be. I suspect it's just running a lot of stuff it shouldn't
be, or it's just being overtaxed and you might have to look at getting
another system to handle part of the load or adding RAM or a faster CPU
to this one.
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#!/usr/bin/perl -w
$_='while(read+STDIN,$_,2048){$a);$bs;$c2;$t%5;@t=map
{$_%16or$t^=$c^=($m=(11,10,116,100,11,122,20,100)[$_/16%8])&110;
$t^=(72,@z=(64,72,$a^*($_%16-2?0:$m&17)),$b^=$_%64?12:0,@z)
[$_%8]}(16..271);if((@a=unx"C*",$_)[20]&48){$h$_=unxb24,join
"",@b=map{xB8,unxb8,chr($_^$a[--$h+84])}@ARGV;s/...$/1$&/;$dunxV,xb25,$_;$e%6|(ord$b[4])<<9|ord$b[3];$d=$d>>8^($f=$t&($d
>>12^$d>>4^$d^$d/8))<<17,$e=$e>>8^($t&($g=($q=$e>>14&7^$e)^$q*
8^$q<<6))<<9,$_=$t[$_]^(($h>>+=$f+(~$g&$t))for@a[128..$#a]}
print+x"C*",@a}';s/x/pack+/g;eval
usage: qrpff 153 2 8 105 225 < /mnt/dvd/VOB_FILENAME \
| extract_mpeg2 | mpeg2dec -
http://www.cs.cmu.edu/~dst/DeCSS/Gallery/
http://www.eff.org/ http://www.anti-dmca.org/
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:21:56 EDT