Re: getting domain info list: Cannot allocate memory
Date: Tue, 19 Dec 2023 01:48:32 UTC
> On Dec 19, 2023, at 9:15 AM, ASOU Masato <takeasou.masato@gmail.com> wrote: > > I was solved this problem by my self. > > asou@intel-fbsd:~ $ sudo xl list > Password: > libxl: error: libxl_domain.c:335:libxl_list_domain: getting domain > info list: Cannot allocate memory > libxl_list_domain failed. > asou@intel-fbsd:~ $ su > Password: > root@intel-fbsd:/home/asou # xl list > Name ID Mem VCPUs State Time(s) > Domain-0 0 4095 4 r----- 14.8 > root@intel-fbsd:/home/asou # > > If I was used sudo command, I got `Cannot allocate memory'. However, I used > su command and execute xl list command, then I got correct result. That is an interesting bug / feature ;) > > Thank you. > -- > ASOU Masato > > 2023年12月18日(月) 16:17 ASOU Masato <takeasou.masato@gmail.com>: >> >> Does anybody know how to solved following problem? >> I got following error when i ran `xl list' command: >> $ sudo xl list >> libxl: error: libxl_domain.c:335:libxl_list_domain: getting domain >> info list: Cannot allocate memory >> libxl_list_domain failed. >> >> I am useing FreeBSD 13.2-RELEASE: >> $ sysctl kern.version >> kern.version: FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC >> >> Following processes are running: >> $ ps ax | grep xen >> 16 - SL 0:00.00 [xenwatch] >> 17 - IL 0:00.00 [xenstore_rcv] >> 1195 - I 0:00.00 /usr/local/sbin/xenstored --pid-file >> /var/run/xen/xenstored.pid >> 1200 - I 0:00.00 /usr/local/sbin/xenconsoled >> 1319 1 R+ 0:00.00 grep xen >> $ ps ax >> PID TT STAT TIME COMMAND >> 0 - DLs 0:00.13 [kernel] >> 1 - ILs 0:00.00 /sbin/init >> 2 - DL 0:00.00 [KTLS] >> 3 - DL 0:00.00 [crypto] >> 4 - DL 0:00.01 [cam] >> 5 - DL 0:00.01 [rand_harvestq] >> 6 - DL 0:00.00 [enc_daemon0] >> 7 - DL 0:00.02 [pagedaemon] >> 8 - DL 0:00.00 [vmdaemon] >> 9 - DL 0:00.00 [bufdaemon] >> 10 - DL 0:00.00 [audit] >> 11 - RNL 21:38.30 [idle] >> 12 - WL 0:02.12 [intr] >> 13 - DL 0:00.00 [geom] >> 14 - DL 0:00.00 [sequencer 00] >> 15 - DL 0:00.09 [usb] >> 16 - SL 0:00.00 [xenwatch] >> 17 - IL 0:00.00 [xenstore_rcv] >> 18 - DL 0:00.00 [vnlru] >> 19 - DL 0:00.00 [syncer] >> 417 - Is 0:00.00 dhclient: system.syslog (dhclient) >> 420 - Is 0:00.00 dhclient: bridge0 [priv] (dhclient) >> 428 - ICs 0:00.00 dhclient: bridge0 (dhclient) >> 852 - Is 0:00.00 dhclient: system.syslog (dhclient) >> 855 - Is 0:00.00 dhclient: em0 [priv] (dhclient) >> 931 - ICs 0:00.00 dhclient: em0 (dhclient) >> 932 - Is 0:00.00 /sbin/devd >> 1134 - Ss 0:00.00 /usr/sbin/syslogd -s >> 1195 - I 0:00.00 /usr/local/sbin/xenstored --pid-file >> /var/run/xen/xenstored.pid >> 1197 - DL 0:00.00 [balloon] >> 1200 - I 0:00.00 /usr/local/sbin/xenconsoled >> 1231 - Is 0:00.00 /usr/sbin/cron -s >> 1234 - Ss 0:00.00 sendmail: accepting connections (sendmail) >> 1237 - Is 0:00.00 sendmail: Queue runner@00:30:00 for >> /var/spool/clientmqueue (sendmail) >> 1254 - Is 0:00.00 sshd: /usr/sbin/sshd [listener] 0 of 10-100 >> startups (sshd) >> 1288 - Is 0:00.01 sshd: asou [priv] (sshd) >> 1290 - S 0:00.01 sshd: asou@pts/0 (sshd) >> 1296 - Ss 0:00.02 tmux: server (/tmp/tmux-1001/default) (tmux) >> 1278 v0 Is+ 0:00.00 /usr/libexec/getty Pc ttyv0 >> 1279 v1 Is+ 0:00.00 /usr/libexec/getty Pc ttyv1 >> 1280 v2 Is+ 0:00.00 /usr/libexec/getty Pc ttyv2 >> 1281 v3 Is+ 0:00.00 /usr/libexec/getty Pc ttyv3 >> 1282 v4 Is+ 0:00.00 /usr/libexec/getty Pc ttyv4 >> 1283 v5 Is+ 0:00.00 /usr/libexec/getty Pc ttyv5 >> 1284 v6 Is+ 0:00.00 /usr/libexec/getty Pc ttyv6 >> 1285 v7 Is+ 0:00.00 /usr/libexec/getty Pc ttyv7 >> 1291 0 Is 0:00.00 -sh (sh) >> 1294 0 I+ 0:00.00 tmux: client (/tmp/tmux-1001/default) (tmux) >> 1297 1 Ss 0:00.01 zsh -l >> 1320 1 R+ 0:00.00 ps ax >> -- >> ASOU Masato >