From nobody Tue Dec 19 01:48:32 2023 X-Original-To: freebsd-xen@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SvKNR0kcQz54Rld for ; Tue, 19 Dec 2023 01:48:39 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SvKNQ6qBbz3MGY; Tue, 19 Dec 2023 01:48:38 +0000 (UTC) (envelope-from zlei@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702950519; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3FrIb+KV/G41iPx+1OWf48xMiP8FKi4fkkubg3mFDMY=; b=bRWbMLDID2GzG0sLWe1r1PxY8pVS+hxYNRCmZBSCe884zCzHegCePYUSzjzo91Gri08/th qXzAZeSEzff2NRdnhn9bVvdEHN3UF8BhRwlKO5vox6tXAVZWFVkDjJQizmEw14tyGDWQxY lKMrNzFZycHeYuyAqxXinLjS1n7ktI4pM3LV/9HO3f0uKVFX6yqfz5kbvCUSb0gSMyfS+v YRK6l3RYI1wtyzY7K6jenhc4yoF7mq7+/GtHIjH6LuLNvkzwK/7YYOvYeZLLVE1M4az12+ Z+uceVlZMmY44AKBnW2QwnrRo+FeTEP7xABVAkMttsGchVhKZcW3bsVV718PHA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702950519; a=rsa-sha256; cv=none; b=d6zWKCPpISyg+0m/wpso+k08uudMw/FkdFIllk4dKjPtrKPjYlNZ92QtdCa/pDiTJ2+bR7 I6QGKLYwHclKkveDP8891n6GmcFAn5KYQnMtqOJcGY31P/04qLESqGssr4awQcfF9wxdCI ec1LVIdLmfkeqN8HSYV3FJVYekukj+rPHHgCkLvmMJ8rV27994GtCfA79gvoBX+aPKvxBR 5pJpxpvDsDtIS6ybSVt/o1yCqRFYF3un9dIBACtWaDZPdDIR3AzcJSzFv4IfGrXR5kdZge fwpvgjF3xCgKHOKvW7OSNrZ4Oc7YlpXAKdfR0/0na7G70fLkq2AwX3Lxlb9VUQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702950519; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3FrIb+KV/G41iPx+1OWf48xMiP8FKi4fkkubg3mFDMY=; b=GHtXyPIufQD0zrXTQd4C0JYsyEHGdAyGZztlp6cPG8XbRhoOVjDxNLHwsQebS9YjpQUvM3 K8CoSz6cKdOyDg5ulsf1zkfcUqi9SVoRHd7JJtbLDjThVgA4OpF7czuOzgmDq2CubogXFr BVH3Pb/I/7G4LAYCifbJZbMfKboK2FadkL909HNdB7g66JrOJ0sLhbn4UXHLSJrzunoyDJ dSUoweTq6CSsPPoFu2ksV3dsS4lBYg3KHiRmc7oDwDK+W5ebMH5JG9ezeYd74nUA9D2VKU pksD/SGEXToejjDwmCYd+T6Sc40FHHz5STiUNJugdGPv7mCtpSIiTRT9OVPmDA== Received: from smtpclient.apple (ns1.oxydns.net [45.32.91.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: zlei/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4SvKNP6mKhzvtF; Tue, 19 Dec 2023 01:48:37 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Content-Type: text/plain; charset=utf-8 List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-xen List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-xen@freebsd.org X-BeenThere: freebsd-xen@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.4\)) Subject: Re: getting domain info list: Cannot allocate memory From: Zhenlei Huang In-Reply-To: Date: Tue, 19 Dec 2023 09:48:32 +0800 Cc: freebsd-xen@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: ASOU Masato X-Mailer: Apple Mail (2.3696.120.41.1.4) > On Dec 19, 2023, at 9:15 AM, ASOU Masato = wrote: >=20 > I was solved this problem by my self. >=20 > 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 # >=20 > 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 ;) >=20 > Thank you. > -- > ASOU Masato >=20 > 2023=E5=B9=B412=E6=9C=8818=E6=97=A5(=E6=9C=88) 16:17 ASOU Masato = : >>=20 >> 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. >>=20 >> I am useing FreeBSD 13.2-RELEASE: >> $ sysctl kern.version >> kern.version: FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 = GENERIC >>=20 >> 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 >=20