c9.io 是啥原理?

2015-01-11 14:56:42 +08:00
 cevincheung

每创建一个workspace都好像分配了一台服务器的样子……

自己安装了pgsql并且能够访问。啥原理

docker咩?

3276 次点击
所在节点    问与答
3 条回复
loveminds
2015-01-11 15:19:35 +08:00
差不多,virt-what探测下就知道了
loveminds
2015-01-16 15:01:54 +08:00
确实是个Docker,但是virt-what误判成kvm了
minmemory@tianji:/home/ubuntu/workspace $ sudo cat /proc/1/cgroup
10:perf_event:/docker/c442ce78d6e549bb4f83a5bb2c33227e25624def833807a39f5c6f4597465908
9:blkio:/docker/c442ce78d6e549bb4f83a5bb2c33227e25624def833807a39f5c6f4597465908
8:net_cls:/
7:freezer:/docker/c442ce78d6e549bb4f83a5bb2c33227e25624def833807a39f5c6f4597465908
6:devices:/docker/c442ce78d6e549bb4f83a5bb2c33227e25624def833807a39f5c6f4597465908
5:memory:/docker/c442ce78d6e549bb4f83a5bb2c33227e25624def833807a39f5c6f4597465908
4:cpuacct:/docker/c442ce78d6e549bb4f83a5bb2c33227e25624def833807a39f5c6f4597465908
3:cpu:/docker/c442ce78d6e549bb4f83a5bb2c33227e25624def833807a39f5c6f4597465908
2:cpuset:/
loveminds
2015-01-16 15:03:15 +08:00
minmemory@timeless:/home/ubuntu/workspace $ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 62
model name : Intel(R) Xeon(R) CPU @ 2.50GHz
stepping : 4
microcode : 0x1
cpu MHz : 2500.000
cache size : 30720 KB
physical id : 0
siblings : 16
core id : 0
cpu cores : 16
apicid : 0
initial apicid : 0
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 mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx f16c rdrand hypervisor lahf_lm xsaveopt fsgsbase smep
bogomips : 5000.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 62
model name : Intel(R) Xeon(R) CPU @ 2.50GHz
stepping : 4
microcode : 0x1
cpu MHz : 2500.000
cache size : 30720 KB
physical id : 0
siblings : 16
core id : 1
cpu cores : 16
apicid : 1
initial apicid : 1
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 mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx f16c rdrand hypervisor lahf_lm xsaveopt fsgsbase smep
bogomips : 5000.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:

........

processor : 15
vendor_id : GenuineIntel
cpu family : 6
model : 62
model name : Intel(R) Xeon(R) CPU @ 2.50GHz
stepping : 4
microcode : 0x1
cpu MHz : 2500.000
cache size : 30720 KB
physical id : 0
siblings : 16
core id : 3
cpu cores : 16
apicid : 3
initial apicid : 3
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 mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx f16c rdrand hypervisor lahf_lm xsaveopt fsgsbase smep
bogomips : 5000.00
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:

minmemory@timeless:/home/ubuntu/workspace $ free -m
total used free shared buffers cached
Mem: 60524 47504 13020 828 243 1647
-/+ buffers/cache: 45613 14910
Swap: 35839 20939 14900

minmemory@timeless:/home/ubuntu/workspace $ df -lhT
df: ‘/root/.ssh/authorized_keys’: Permission denied
Filesystem Type Size Used Avail Use% Mounted on
rootfs rootfs 1.1G 168M 858M 17% /
none aufs 1.1G 168M 858M 17% /
tmpfs tmpfs 30G 0 30G 0% /dev
shm tmpfs 64M 0 64M 0% /dev/shm
/dev/mapper/volg1-lvdata ext4 886G 485G 358G 58% /nix
tmpfs tmpfs 30G 0 30G 0% /proc/kcore

minmemory@timeless:/home/ubuntu/workspace $ sudo virt-what
cat: /proc/1/environ: Permission denied
kvm

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/161111

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX