Форум русскоязычного сообщества Ubuntu


Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?
Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!

Автор Тема: Squid v 2.7 тормозит  (Прочитано 789 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн tunsa

  • Автор темы
  • Новичок
  • *
  • Сообщений: 43
    • Просмотр профиля
Squid v 2.7 тормозит
« : 09 Декабря 2015, 13:20:56 »
Добрый день!
Прошу помощи после некоторого времени начинает тормозить squid, после того как в логах появляется вот это
2015/12/09 14:04:31|       105 Duplicate URLs purged.
2015/12/09 14:04:31|        31 Swapfile clashes avoided.
2015/12/09 14:04:31|   Took 41.6 seconds (1987.6 objects/sec).
2015/12/09 14:04:31| Beginning Validation Procedure
2015/12/09 14:04:32|   Completed Validation Procedure
2015/12/09 14:04:32|   Validated 65280 Entries
2015/12/09 14:04:32|   store_swap_size = 1886732k
2015/12/09 14:04:32| storeLateRelease: released 2 objects
2015/12/09 14:07:29| httpReadReply: Excess data from "GET http://market-click2.yandex.ru/redir/yi4N2a_AefwDa6gcuw_IdsyqQofJ-qA-vRWjKNrdHVhaMf-9XgfeBRQRoVsMt_eU5byzE50jzwJhas_n3PzCBismRTJCK01iakiQ9r42YmlKBC83E8IvV45ImX44cnbV2wiTRk6GMiLFs52kh_1fwbw3IhbyKC80aK9lHD95TvCPwyNyPMJ-uV8WjW3_j5nVhWY42GoHd5yOlvPt6xSsFXw-KwSaf0LtGG7Zw9Zs2vqjvJoTR4Imod9cVjLWe-HfH-gR1edIs_A?data=UlNrNmk5WktYejR0eWJFYk1Ldmtxbnd0OUpjMWhya2ozV1BnSTZFWV9ILXFhVENsZEc4T0p4SE9ZTl9pS1pqTFo4U1dNbVZhd3dNekxRdUZLa3FkVmE1WkdFanlaZFoyelFyLU5ELWFEbVZXWFVkNU1lX2FXcVRLNVM0UF9HbnV2U2lWMk41U3dsRjgtTnc3S0lGMmMxX1pmTk5Ea1dKLTlCdVJIcDc1U25nV2tjMktKdFpTRjQ2b3dFQW90bk8yMUxaUFhoVzYzS0tySjFYMkMyR0NpbUhGYU44ZGxYdWZaREpHMFBJRWpJXy1YdzZZVHBUWjg1TUhwd1VGMVUwa2JVakdjck1vYWVwVEVyM202Q0huN3oydXp0Y0tkeTllc3hPUGI4aUc0RUFvazdERHJtaEFLWGJMOGs4eW9oU3ZTakdPejVoR0I2cw&b64e=2&sign=2dee2dcd9023f6f3b67d520259355b64&keyno=0"
2015/12/09 14:16:47| httpReadReply: Excess data from "GET http://market-click2.yandex.ru/redir/yi4N2a_AefwDa6gcuw_IdsyqQofJ-qA-vRWjKNrdHVhaMf-9XgfeBRQRoVsMt_eU5byzE50jzwKhAkneyyh_OwE1smfhJ5kPYyM7Ubh8yFWz1JI3iO6HbPU6d6ynKaQfyVac3tZcEgzPtxfwaPU_oHTLAFXvKZ61jsjtZFWfl3_gWoVZ5bk75JMUu_XrCJ7xEQs8_vZ6-pLIUSYUtkDVV5JYuUBHtK-ADJDdYAYf5jo3bC_poE0iz8wzAUU2DKP8Zwn9NPOwVAU?data=UlNrNmk5WktYejR0eWJFYk1LdmtxcTl6Q0V2cFFpRW9rVnRPMEFhSFYtak5kOXFBLVVPUGM0cWpKQldCdzRtRWducXFJTWRndWdfT1dRZ3dRak1yWGQ5S2kxR2pPcmVQZklmOEJMcmNrMG9RMGhmNUpLb2tfVWJsaWNJVDBodGxiZ29ldllOY29qdw&b64e=2&sign=74e427e1207196bc0bd43aa6edbce7a1&keyno=0"

После рестарта работает норм, а потом снова

Свободного места на диске достаточно
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdc1              65G   23G   39G  38% /
none                  4,0G  248K  4,0G   1% /dev
none                  4,0G     0  4,0G   0% /dev/shm
none                  4,0G  5,5M  4,0G   1% /var/run
none                  4,0G     0  4,0G   0% /var/lock
none                  4,0G     0  4,0G   0% /lib/init/rw
/dev/sda1             678G  525G  119G  82% /media/data

мой конфиг squid

# <EBOX> TAG_HTTPORT #
http_port 3128
# END_TAG #

visible_hostname localhost
dns_nameservers 
append_domain .zentyal.exemple.com
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

# refresh patterns

# windows updates
refresh_pattern http://.*\.windowsupdate\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://.*\.update\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://download\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://windowsupdate\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://.*\.download\.windowsupdate\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://office\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://w?xpsp[0-9]\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://w2ksp[0-9]\.microsoft\.com/ 0 80% 20160 reload-into-ims
# linux updates
refresh_pattern http://.*\.archive\.ubuntu\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://(ftp|http)[0-9]*\.[a-z]+\.debian\.org/ 0 80% 20160 reload-into-ims

refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern .               0       20%     4320
# end refresh patterns

coredump_dir /var/spool/squid
cache_effective_user proxy
cache_effective_group proxy
cache_mem 128 MB
#maximum_object_size 300 MB
maximum_object_size 3200 KB
access_log /var/log/squid/access.log squid
pid_filename /var/run/squid.pid

cache_dir ufs /var/spool/squid 2048 16 256

# <EBOX> TAG_ACL #
auth_param basic realm Zentyal HTTP proxy
auth_param basic program /usr/lib/squid/ldap_auth -v 3 -b  ou=Users,dc=zentyal2012  -u uid  -h ldap://127.0.0.1:389
acl authorized  proxy_auth required
url_rewrite_program /usr/bin/adzapper.wrapper
# no cache domains acl
acl noCached dstdomain b2b.sibur.ru
acl noCached dstdomain online.sberbank.ru
acl noCached dstdomain rbc.ru
acl noCached dstdomain sbi.sberbank.ru
acl noCached dstdomain srm.surgutneftegas.ru

# END_TAG #
acl localhost src 127.0.0.0/8
acl localhostdst dst 127.0.0.0/8
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563 # https, snews
acl SSL_ports port 873 # rsync
acl SSL_ports port 1947         # kompas
acl SSL_ports port 44300 # gazprom
acl SSL_ports port 8000
acl SSL_ports port 7443
acl SSL_ports port 5242       # viber
acl SSL_ports port 4244
acl SSL_ports port 5243
acl SSL_ports port 9785
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 9443        # sberbank
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT

follow_x_forwarded_for allow localhost
log_uses_indirect_client off

http_access allow localhost

http_access deny manager
http_access deny purge
http_access deny !Safe_ports
http_access allow CONNECT !SSL_ports
http_reply_access allow all

# <EBOX> TAG_DELAYPOOLS #

acl eboxlocalnets dst 192.168.5.0/24

# END_TAG

# <EBOX> TAG_HTTP_ACCESS #
cache deny noCached
http_access allow authorized all
http_access allow   admin

http_access allow   inet

# default policy section


http_access allow authorized all
http_access allow all


# END_TAG #

# <EBOX> TAG SNMP #

# END_TAG #

always_direct allow localhostdst

url_rewrite_children 50

Дайте пожалуйста совет, что где поправить, чтоб не тормозило, может логи на отдельный диск

top
top - 15:20:44 up 41 days, 21:07,  1 user,  load average: 0.48, 0.65, 0.62
Tasks: 400 total,   3 running, 397 sleeping,   0 stopped,   0 zombie
Cpu(s):  3.4%us,  2.9%sy, 48.5%ni, 44.0%id,  0.6%wa,  0.2%hi,  0.3%si,  0.0%st
Mem:   8265936k total,  7952784k used,   313152k free,   265780k buffers
Swap:  2950136k total,    33920k used,  2916216k free,  6186280k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                                                                                         
 5736 ebox      39  19 36760  23m 3224 R   99  0.3   0:03.08 apt-check                                                                                                                                                                       
24090 root      20   0 34776  19m 4196 R    5  0.2   1481:46 lxdm-greeter-gt                                                                                                                                                                 
 6434 root      20   0 32332  15m 2456 S    2  0.2 719:16.81 Xorg                                                                                                                                                                           
 7781 snort     30  10 66300  47m 4708 S    2  0.6   4:32.91 snort                                                                                                                                                                           
 5729 root      20   0  5828 2296 1564 R    1  0.0   0:00.16 top                                                                                                                                                                             
 3865 bind      20   0  109m  49m 2952 S    1  0.6  83:10.67 named                                                                                                                                                                           
 1998 redis     20   0  2840  584  516 S    0  0.0  11:18.21 redis-server                                                                                                                                                                   
11496 ebox      20   0  3952 2088 1412 S    0  0.0   0:05.30 imap                                                                                                                                                                           
28763 proxy     20   0 46000  31m 1804 S    0  0.4   0:52.87 squid                                                                                                                                                                           
    1 root      20   0  5988 2216 1696 S    0  0.0  22:39.93 init                                                                                                                                                                           
    2 root      20   0     0    0    0 S    0  0.0   0:00.06 kthreadd                                                                                                                                                                       
    3 root      RT   0     0    0    0 S    0  0.0   0:26.18 migration/0                                                                                                                                                                     
    4 root      20   0     0    0    0 S    0  0.0   1:32.18 ksoftirqd/0                                                                                                                                                                     
    5 root      RT   0     0    0    0 S    0  0.0   0:00.00 watchdog/0                                                                                                                                                                     
    6 root      RT   0     0    0    0 S    0  0.0   0:19.14 migration/1                                                                                                                                                                     
    7 root      20   0     0    0    0 S    0  0.0   2:47.96 ksoftirqd/1                                                                                                                                                                     
    8 root      RT   0     0    0    0 S    0  0.0   0:00.00 watchdog/1                                                                                                                                                                     
    9 root      20   0     0    0    0 S    0  0.0   0:25.07 events/0                                                                                                                                                                       
   10 root      20   0     0    0    0 S    0  0.0   0:53.42 events/1                                                                                                                                                                       
   11 root      20   0     0    0    0 S    0  0.0   0:00.00 cpuset                                                                                                                                                                         
   12 root      20   0     0    0    0 S    0  0.0   0:08.18 khelper                                                                                                                                                                         
   13 root      20   0     0    0    0 S    0  0.0   0:00.00 netns                                                                                                                                                                           
   14 root      20   0     0    0    0 S    0  0.0   0:00.00 async/mgr                                                                                                                                                                       
   15 root      20   0     0    0    0 S    0  0.0   0:00.00 pm                                                                                                                                                                             
   17 root      20   0     0    0    0 S    0  0.0   0:04.41 sync_supers                                                                                                                                                                     
   18 root      20   0     0    0    0 S    0  0.0   0:06.56 bdi-default                                                                                                                                                                     
   19 root      20   0     0    0    0 S    0  0.0   0:00.00 kintegrityd/0                                                                                                                                                                   
   20 root      20   0     0    0    0 S    0  0.0   0:00.00 kintegrityd/1                                                                                                                                                                   
   21 root      20   0     0    0    0 S    0  0.0   0:25.54 kblockd/0                                                                                                                                                                       
   22 root      20   0     0    0    0 S    0  0.0   0:15.65 kblockd/1                                                                                                                                                                       
   23 root      20   0     0    0    0 S    0  0.0   0:00.00 kacpid                                                                                                                                                                         
   24 root      20   0     0    0    0 S    0  0.0   0:00.00 kacpi_notify                                                                                                                                                                   
   25 root      20   0     0    0    0 S    0  0.0   0:00.00 kacpi_hotplug                                                                                                                                                                   
   26 root      20   0     0    0    0 S    0  0.0   3:47.23 ata/0                                                                                                                                                                           
   27 root      20   0     0    0    0 S    0  0.0   3:45.59 ata/1                                                                                                                                                                           
   28 root      20   0     0    0    0 S    0  0.0   0:00.00 ata_aux                                                                                                                                                                         
   29 root      20   0     0    0    0 S    0  0.0   0:00.00 ksuspend_usbd                                                                                                                                                                   
   30 root      20   0     0    0    0 S    0  0.0   0:00.00 khubd                                                                                                                                                                           
   31 root      20   0     0    0    0 S    0  0.0   0:00.03 kseriod                                                                                                                                                                         
   32 root      20   0     0    0    0 S    0  0.0   0:00.00 kmmcd             

Оффлайн vasilisc

  • Заслуженный пользователь
  • Старожил
  • *
  • Сообщений: 2563
  • г.Северодвинск - строим АПЛ
    • Просмотр профиля
    • Авторские статьи об OpenSource
Re: Squid v 2.7 тормозит
« Ответ #1 : 10 Декабря 2015, 09:28:23 »
В официальной вики есть вам приговор - нет решения проблемы.
There is no generally usable workaround for this problem.
http://wiki.squid-cache.org/KnowledgeBase/ExcessData

Как совет - обновитесь до последнего Ubuntu LTS релиза и перейдите на Squid3.

Оффлайн tunsa

  • Автор темы
  • Новичок
  • *
  • Сообщений: 43
    • Просмотр профиля
Re: Squid v 2.7 тормозит
« Ответ #2 : 10 Декабря 2015, 10:32:35 »
В официальной вики есть вам приговор - нет решения проблемы.
There is no generally usable workaround for this problem.
http://wiki.squid-cache.org/KnowledgeBase/ExcessData

Как совет - обновитесь до последнего Ubuntu LTS релиза и перейдите на Squid3.

спасибо за ответ, при этом хочу добавить, что у меня прокси пользуется 50 человек, когда под вечер народу ставится меньше интернет летает
« Последнее редактирование: 10 Декабря 2015, 13:59:44 от tunsa »

 

Страница сгенерирована за 0.052 секунд. Запросов: 21.