Може ли един въпрос като от новобранец в Linux-a. Имаме интернет сървър инталиран от ISP-то ни.
Дистрибуцията е Slackware и ядрото е 2.4.18.
Та проблема е следният - всяка сутрин намирам машината без httpd и squid и в логовете пише приблизително - поради недостиг на свободна памет с убити следните процеси дъра-бъра... Може ли да ме насочите за евентуални оптимизации за да няма рестарт всяка сутрин.
Ето дъмп от syslog-a:
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">Mar 5 04:48:55 rickardo kernel: Out of Memory: Killed process 18307 (httpd).
Mar 5 04:48:55 rickardo kernel: VM: killing process httpd
Mar 5 04:48:55 rickardo kernel: Out of Memory: Killed process 18308 (httpd).
Mar 5 04:48:55 rickardo kernel: Out of Memory: Killed process 18308 (httpd).
Mar 5 04:49:02 rickardo kernel: VM: killing process httpd
Mar 5 04:49:08 rickardo kernel: Out of Memory: Killed process 18309 (httpd).
Mar 5 04:49:09 rickardo kernel: Out of Memory: Killed process 18309 (httpd).
Mar 5 04:49:09 rickardo kernel: VM: killing process httpd
Mar 5 04:49:09 rickardo kernel: Out of Memory: Killed process 218 (httpd).
Mar 5 04:49:28 rickardo last message repeated 28 times
Mar 5 04:49:28 rickardo kernel: VM: killing process httpd
Mar 5 04:49:28 rickardo kernel: Out of Memory: Killed process 18183 (monitor.pl).
Mar 5 08:24:03 rickardo inetd[76]: internal service ftp unknown
Mar 5 08:24:04 rickardo kernel: Linux version 2.4.18 (root@midas) (gcc version 2.95.3 20010315 (release)) #4
Sunwind теб те видях и по други постове с "компетентно мнение" - нещо ни ми се слушат новоизлюпени хакери [)].. Приказки от рода на "вземи си 5 кила памет, 2 тона диск и ако може 2 процесора" и аз мога да ги ръся. Все пак става дума за настройки, със супер машини и "баба може"
Sunwind теб те видях и по други постове с "компетентно мнение" - нещо ни ми се слушат новоизлюпени хакери [)].. Приказки от рода на "вземи си 5 кила памет, 2 тона диск и ако може 2 процесора" и аз мога да ги ръся. Все пак става дума за настройки, със супер машини и "баба може"
Squid keeps an in-memory table of objects in RAM. Because of the way that Squid checks if objects are in the file store, fast access to the table is very important. Squid slows down dramatically when parts of the table are in swap.
Since Squid is one large process, swapping is particularly bad. If the operating system has to swap data, Squid is placed on the 'sleeping tasks' queue, and cannot service other established connections. (? hmm. it will actually get woken up straight away. I wonder if this is relevant ?)
Each object stored on disk uses about 75 bytes (? get exact value ?) of RAM in the index. The average size of an object on the Internet is about 13kb, so if you have a gigabyte of disk space you will probably store around about 80 000 objects.
At 75 bytes of RAM per object, 80 000 objects require about six megabytes of RAM. If you have 8gigs of disk you will need 48Mb of RAM just for the object index. It is important to note that this excludes memory for your operating system, the Squid binary, memory for in-transit objects and spare RAM for for disk cache.
So, what should your sustained-thoughput of your disks be? Squid tends to read in small blocks, so throughput is of lesser importance than random seek times. Generally disks with fast seeks are high throughput, and most disks (even IDE disks these days) can transfer data faster than clients can download it from you. Don't blow a year's budget on really high-speed disks, go for lower-seek times instead - or add more disks.
Ааа , сетих се кой си. Този собственик на game клуб , на когото Microsoft му извиват ръцете да си купи XP , а той не ще. Кой е този game клуб в който не могат да се отделят пари за сносна машина за proxy?
Това, че имаш възможност да работиш на хубави машини знаеш ли какво предимство ти дава ??
Да кажем - минимално. Тъй че предложението с бабата си остава.
Аз доколкото чета разбирам, че паметта се определя от това колко обекта ще имаш в кеша. Което не значи автоматично - 512МВ са добре. Пък и гледам наблягат на дисковете.. освен това хората са казали:
П.С. Защо в българските форуми първо трябва да си премерим пишките и след това да се говори за работа ?? 10 риплейя и нищо на лице.....българска работа