| |
| |
| |
|
Page: 1 2
Comments:
<0> How can i find out what my email is for my user account <1> echo `whoami`@`hostname` <2> <2> .,-~*`````~-, <2> .,`:,,`. . . . . . . ..:\...................................................................... <2> .,,,;::/. . . . . . . ,,,,. \:\...................................................................... <2> (. . .``~-,.,-,.|:::|. -~``.,.,. ,.,,`..|:::`-,... <2> .`-,,,. . . .`~-/. ,../\......................../::::|. .'''~. | |.`-``. \::::::`,.. <2> .(. . . ````~-,(.u./. .\.....................(::::::|. . . .,-`.`,. . . . |:::::::|. <2> ..>--..,,,,,. .). ` . . .).\::::::\. .,-````-`````-,. .|:::::::,, <2> (. . . . . ```|. . . . /..):::::|\./.\````````/`.\./:::::::/. .| <2> .>~~-----). . . /.,`::::::|::`-,.'`````` ,-`::::::::)|. ..\............................................................ <3> . <3> ....;;; <4> how can i delete files older than 5 minutes in a directory ? <5> find xargs rm
<5> google <4> find /tmp/ -type f -mtime +1 -exec rm -f {} \; <4> this deletes older than 1 day <4> i need 5 minutes <5> man find <4> mmin ? <5> -cmin n <5> File's status was last changed n minutes ago. <5> change minutes <4> whats the diff <5> cmin is anything <5> mmin is just data contents <5> hmm <5> yeah <5> cause status is date modified as well as chmod or chown etc etc <4> still don't get you <5> cmin is file status change <5> that means if anystatus of the file changes it marked <5> like if someone chown the file, thats a status change <5> or if it gets modified <5> or touched <4> which is faster? <5> mmin only looks at modified date and time <5> prolly the same <4> if it looks for extra things, shouldnt it be slower? <5> how many files are getting created in your tmp dir? <4> alot <4> 1000 <4> every few minutes <5> nah, status change is recorded the same way as modified time, its just a couple of bits in the journal/file header <5> damn <5> whats making so many files? <4> i setup the crontab to run every 5 mins <4> the webserver accelerator <4> some kinda caching <5> squid? <4> not squid but similar <5> apache accel? <4> is /tmp a ram dir ? <5> you must be hosting tons of content <5> it could be <5> but not likely <4> by default i mean <5> df -h <5> oo <5> well, when booting from liveCDs it usually is <4> says /dev/hda3 1012M 34M 927M 4% /tmp <5> but not normal server installations <5> thats the 3rd partition on your first IDE device <5> its a little odd to make it its own partition like that <5> what OS is this? <4> RHE <5> 3-4? <4> 4 <5> did you do the install, or was it done by a host? <4> host <5> you leaswe the box? <4> yea <5> ok <4> i have serveral <4> some of them don't have this partition
<5> their image is set up that way then <4> but i forsee i'm going to have problem with using /tmp not being ram <5> it can be a bad idea depending on the quality of the hdd <5> you already bounce from swap to root partition often enough <5> but i doubt swap is used as much as your temp vs root movement <5> i would look more into why your accel isnt deleteing files itself <5> and maybe move to squid accellerator <5> ive had good luck with squid used as such <4> squid is too much to learn <4> i tried and gave up the other time <5> wha? <5> squid is hardly anything to learn <5> there arent too many things to tweak in the conf <4> the last time i tried squid, i was better off doing with out <4> so i replaced squid with a tcp proxy load balancer <4> how do i check how much mb is in a dir ? <5> http://squid.visolve.com/squid/squid24s1/httpd_accelerator.htm <4> ls -s ? <4> whats 164 mean <5> size <5> man size <4> size: a.out: No such file or directory <4> i need to determine what is the ramdisk size i should use <5> why use a ramdisk? <5> your not going to gain anything <5> eventually something is going to cause the files to pile up, then your accel will just lock up <4> i have a crond to delete the files <4> every 1 minute <5> heh <5> a bandaid <4> yea so i need just the right size ramdisk <5> i bet there is a cache setting your not looking at on your accel <5> heh, ram disk is your band-aid, not your final answer <5> a properly configured web setup is your best answer <4> how do i get the total filesize of all the files in /tmp ? <5> did you see the tutorial i pasted about squid <5> 10 lines only or so needed in your conf <5> and youll never need a ramdisk or crand to manage it, except maybe for logs <4> its complicated to cache my forum <4> i need a more customised solution <4> which is what im doing <4> i tried squid, it isn't caching anything somehow <5> how many visits a day? <4> millions <5> how much b/w are you using? <4> i'm using gzip so theres no issue <5> what back end are you using, mysql? <4> 4 webservers, 1 mysql server <4> thats just the forum <5> ok, so you got some distrobution then <4> yes <4> tcp round robin <5> hmm <5> so each server is getting 1/4 off all hits? <4> yes <4> and each server needs a ramdisk <5> i hope you backup your sql often :) <5> nah <4> yes sql is backuped 2 times a day <5> each server doesnt need a ramdisk <5> thats a bunch of hype <4> no ramdisk ? <5> ram disks where for a time when real hard drives were super slow <4> i can picture my hdd light now....... <5> with that much usage, you need RAID <4> ramdisk will be easier <5> im going to keep telling you, till you puke or leave, a ram drive is not your answer <5> ive ran many web servers <4> you are saying im fine the way i am now ? <5> no <4> the thing is i won't know until this weekend when the traffic really comes in <5> so far i have only told you ramdrive is not the answer <5> let me ask more question <5> s
Return to
#redhat or Go to some related
logs:
#visualbasic #sendmail Secure clock Janus Sansa Nuvo research strong buy hit in the nuts with a snowball branh0913
glitrbitz #beginner #politics #politics
|
|