i have same issue, a table with 145559996 "lines" and 4 fields for group, indexed, and more 4 fields for sum/count. The total table size, in disk, is
Code:
-rw-rw---- 1 mysql mysql 8,7K Fev 1 19:38 tmp_ren201009.frm
-rw-rw---- 1 mysql mysql 4,5G Fev 1 20:38 tmp_ren201009.MYD
-rw-rw---- 1 mysql mysql 2,3G Fev 1 20:38 tmp_ren201009.MYI
uname -r: 2.6.18-194.3.1.el5.centos.plus
mysql --version: mysql Ver 14.14 Distrib 5.1.48, for unknown-linux-gnu (x86_64) using readline 5.1
free -m:
Code:
[root@Controladoria1 ~]# free -m
total used free shared buffers cached
Mem: 48299 35559 12740 0 323 34100
-/+ buffers/cache: 1135 47164
Swap: 24575 0 24575
df -h:
Code:
File System Size Used Avail Use% Mount at
/dev/sda1 30G 6,6G 22G 24% / 'here is /tmp included
/dev/sdb1 2,3T 653G 1,7T 29% /home 'other disk punch mounted, raid 0 of 6 fisical disks
/dev/sda3 412G 105G 308G 26% /X 'interchange área with other systems/plataforms
/dev/sdc1 917G 594G 278G 69% /backup 'a external disk atached in usb for backup critical data
tmpfs 24G 0 24G 0% /dev/shm 'the swap filesystem
i noted the error occurs when system try to flush memory in swap área or /tmp, im not sure, but i see when the memory reaches the "fisical" limit of 48Gb and produces the error describe above.
how can I join the two areas, swap of the system (24Gb) and the /tmp (about 20Gb), in one with ~44Gb ? If /tmp size not enough, the system should not use the swap área ?
A system with 48Gb of memory, ~20Gb disk space for /tmp ang more 24Gb of swap is not enough for rum a "simple" query in a big, not huge, database? is the sky the limit?