编译安卓的硬件环境要求
今天编译安卓系统的时候出现了OUT OF MEMORY的问题,现在虚拟机跑的2G的内存,之前看帖好像有一篇是说内存要大的,请问具体环境需要多少资源建议8G 没有8G的话 虚拟机就弄一个大的swap分区 比如8G
root@hxp-v:~# fdisk -l
Disk /dev/sda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders, total 125829120 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001931b
Device Boot Start End Blocks IdSystem
/dev/sda1 * 2048 123731967 61864960 83Linux
/dev/sda2 123734014 125827071 1046529 5Extended
/dev/sda5 123734016 125827071 1046528 82Linux swap / Solaris//这里分配了1g
本帖最后由 jiangdou 于 2015-12-18 23:57 编辑
processor : 7
vendor_id : GenuineIntel
cpu family : 6
model : 60
model name : Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
stepping : 3
microcode : 0x19
cpu MHz : 800.000
cache size : 8192 KB
physical id : 0
siblings : 8
core id : 3
cpu cores : 4
apicid : 7
initial apicid : 7
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm
bogomips : 7997.55
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
dou@dou-ub12-svr:kernel$ cat /proc/meminfo
MemTotal: 16093088 kB
MemFree: 14534312 kB
Buffers: 104336 kB
Cached: 1151056 kB
SwapCached: 0 kB
Active: 838284 kB
Inactive: 438360 kB
Active(anon): 22500 kB
Inactive(anon): 1364 kB
Active(file): 815784 kB
dou@dou-ub12-svr:kernel$ sudo fdisk -l
password for dou:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0004a3b7
Device Boot Start End Blocks IdSystem
/dev/sda1 * 2048 97656831 48827392 83Linux
/dev/sda2 976588781953523711 927932417 5Extended
Partition 2 does not start on physical sector boundary.
/dev/sda5 97658880 105469951 3905536 82Linux swap / Solaris
/dev/sda6 105472000 105861119 194560 83Linux
/dev/sda7 105863168 115625983 4881408 83Linux
/dev/sda8 115628032 193751039 39061504 83Linux
/dev/sda9 193753088 584376319 195311616 83Linux
/dev/sda10 5843783681267970047 341795840 83Linux
/dev/sda11 12679720961953523711 342775808 83Linux
dou@dou-ub12-svr:kernel$
dou@dou-ub12-svr:kernel$ sudo df -h
Filesystem SizeUsed Avail Use% Mounted on
/dev/sda1 46G2.7G 41G 7% /
udev 7.7G4.0K7.7G 1% /dev
tmpfs 3.1G2.0M3.1G 1% /run
none 5.0M 05.0M 0% /run/lock
none 7.7G 07.7G 0% /run/shm
/dev/sda8 37G 48M 35G 1% /home
/dev/sda10 321G104G202G34% /work_sdk
/dev/sda11 322G 65G241G22% /work_lins
/dev/sda6 180M 31M137M19% /boot
/dev/sda7 4.5G9.4M4.2G 1% /tmp
/dev/sda9 184G161G 14G93% /work_source
dou@dou-ub12-svr:kernel$
{:soso__4011813854091704040_1:}
jiangdou 发表于 2015-12-18 23:53 static/image/common/back.gif
processor : 7
vendor_id : GenuineIntel
cpu family : 6
豆哥 炫富可耻
@allen 发表于 2015-12-19 09:55 static/image/common/back.gif
豆哥 炫富可耻
{:3_41:}
问题已经解决,谢谢楼上各位,我买了根条子又:D
页:
[1]