avast, /proc/sys/kernel/shmmax is insufficient for avast to run
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Avast for linux requires a higher value in order to be able to update its signature database. This is the info they post on their forum to help people fix the issue:
"Starting with the 400.vps, version 100328-1, one of it's internal block reached the inner limit 33554432 bytes. It's a kernel variable which
is (quite artificially) limiting the maximum size of any SHM memory block - and 33554432 was a default for some kernels.
Solution? Set the limit to higher values (as root):
sysctl -w kernel.
OR
echo 128000000 >/proc/
Place those lines to /etc/init.d/rcS or equivalent file (it's distribution-
The current value in Ubuntu 10.04 is:
silviu@
33554432
Is there any reason to have this default and not something along the lines that the Avast staff suggest. Could future Ubuntu releases have "128000000" as default ? Would be nice if newbie switchers could just fire off their on demand scanner and have it work out of the box.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: linux-image (not installed)
Regression: No
Reproducible: Yes
ProcVersionSign
Uname: Linux 2.6.38-10-generic x86_64
NonfreeKernelMo
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: amd64
ArecordDevices:
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/pcmC0D0p: silviu 1428 F...m pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
Card hw:0 'PCH'/'HDA Intel PCH at 0xfb500000 irq 52'
Mixer name : 'Realtek ALC892'
Components : 'HDA:10ec0892,
Controls : 32
Simple ctrls : 18
Date: Sat Aug 6 18:49:08 2011
HibernationDevice: RESUME=
InstallationMedia: Ubuntu 10.04.3 LTS "Lucid Lynx" - Release amd64 (20110720.1)
IwConfig:
lo no wireless extensions.
eth0 no wireless extensions.
eth1 no wireless extensions.
MachineType: System manufacturer System Product Name
ProcCmdLine: BOOT_IMAGE=
ProcEnviron:
LANG=en_US.utf8
SHELL=/bin/bash
RelatedPackageV
RfKill:
SourcePackage: linux
dmi.bios.date: 05/09/2011
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1013
dmi.board.
dmi.board.name: P8P67 LE
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev X.0X
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: System Product Name
dmi.product.
dmi.sys.vendor: System manufacturer
Changed in linux (Ubuntu): | |
status: | New → Confirmed |
Changed in linux (Ubuntu): | |
status: | Confirmed → Fix Committed |
These settings will not remain after the next reboot unless they are saved in the /etc/sysctl.conf file.
Open /etc/sysctl.conf in a text editor and add entry: shmmax= 128000000
kernel.
Save and close